There’s a false belief in the web development community that CSS animation is the only performant way to animate on the web. This myth has coerced many developers to abandon JavaScript-based animation altogether, thereby (1) forcing themselves to manage complex UI interaction within style sheets, (2) locking themselves out of supporting Internet Explorer 8 and 9, and (3) forgoing the beautiful motion design physics that are possible only with JavaScript.
Reality check: JavaScript-based animation is often as fast as
CSS-based animation — sometimes even faster. CSS animation only appears
to have a leg up because it’s typically compared to jQuery’s
$.animate(), which is, in fact, very slow. However, JavaScript animation
libraries that bypass jQuery deliver incredible performance by avoiding
DOM manipulation as much as possible. These libraries can be up to 20
times faster than jQuery.
So, let’s smash some myths, dive into
some real-world animation examples and improve our design skills in the
process. If you love designing practical UI animations for your
projects, this article is for you.
Comments
Be the first to write a comment
You must me logged in to write a comment.