3 ms·
This is really cool! Also the cool thing about using <input type="checkbox"> is that updating the checked status of each input doesn't cause reflow (as far as
by flanbiscuit 3y ago
This is really cool!
Also the cool thing about using <input type="checkbox"> is that updating the checked status of each input doesn't cause reflow (as far as I can tell according to: https://gist.github.com/paulirish/5d52fb081b3570c81e3a https://gist.github.com/paulirish/5d52fb081b3570c81e3a). And using JS to check/uncheck an input doesn't update the DOM. If you inspect the DOM of https://www.bryanbraun.com/checkboxland/ https://www.bryanbraun.com/checkboxland/ you see absolutely nothing changing as all of the animations are running. That helps keep things speedy.