3 ms·
Forgive my ignorance of terms, but how is this "CSS-powered" if it's a jQuery plugin?
by Edd314159 12y ago
Forgive my ignorance of terms, but how is this "CSS-powered" if it's a jQuery plugin?
- bendyorke 12y agoI believe he means that it uses CSS transitions, not javascript transitions. So the animations are what are, whenever possible, "CSS-powered"
- mathijs 12y agoI think what they mean is that you don't have to type any javascript yourself, such as setting onclick-listeners. At the top of the page it reads "CSS powered (jQuery fallback)", however, if jQuery fails to load (e.g. when visiting the https-version of the same page), it doesn't work. What I also don't understand is how this plugin was in any way 'missing'. It seems we had plenty already[1]. [1]: http://www.designrazzi.net/2014/free-jquery-accordion-menus-plugins/ http://www.designrazzi.net/2014/free-jquery-accordion-menus-...
- Zikes 12y agoThe animations are CSS powered, which takes advantage of GPU optimizations better than JS animations. If the browser does not support the necessary CSS animations then jQuery animations will be used. jQuery is still necessary for the logic behind implementing an accordion, but the "heavy lifting" is done in CSS where possible.
- mathijs 12y agoAh, thanks, that makes sense.
- freshyill 12y agoSeeing an animation like this seems like such a trivial thing. It's like rounded corners. Is anybody wasting effort with background images or javascript to make rounded corners for old browsers? I can't imagine they are. If they are, they need to have the graceful degradation talk with their boss/client.