3 ms·
RE: jQuery.animate() - that was around before CSS animations were. Animations were not in the CSS spec until v3 which only saw widespread support this side of 2
by Jestar342 6y ago
RE: jQuery.animate() - that was around before CSS animations were. Animations were not in the CSS spec until v3 which only saw widespread support this side of 2010.
Before then you could only do animations with Javascript, and frankly jQuery's `animate()` was a god-send.
- dsego 6y agoOn top of that, js animations are still better for controlling timing and events or for a more realistic natural motion (springs instead of timed easing).
- heavenlyblue 6y agoI would say that what JS animations are even better at is justifying inflated budgets of the projects made for people who are not very familiar with tech. Is there ever a real reason for animations that doesn't make the interface feel sluggish and unresponsive? In the other hand if you actually set the animation delay to something incredibly low, all of your animation needs could be easily solved by animating the transparency of the appearing elements.
- mattmanser 6y agoAnimations are effective, and I say that as someone who really hate slow ones. If you start paying more attention to the apps you use, especially ones made by bigger companies, and you'll notice how effective some of them can be.
- heavenlyblue 6y agoIs the latest version of Google Calendar web interface a good example? I don't think it is. And it's from a company which can afford a lot of development resources for that.
- recursive 6y agoYou can use it to make your UI more obvious. If you hit "Delete", the item might shrink and slide (within say 200ms) into the "trash can". This way the user knows they can undelete from the trash can.