Animating with JavaScript instead of CSS

It's a common misconception that animating with JavaScript is slower and that animations should be done in CSS. The reality is that if used correctly, animation in JavaScript can have similar or superior performance. In this recipe, we will create an animation with the help of the simple but powerful Velocity.js (http://velocityjs.org/) library:

Get Vue.js 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.