Velocity's features include:11
Velocity supports all major desktop browsers (Firefox, Google Chrome, and Safari) plus the iOS and Android mobile operating systems. Its support extends as far back as Internet Explorer 8 and Android 2.3.15
The Velocity library is a single JavaScript file containing all of its core functions. It can be included within a web page by linking to a local copy or to one of the many copies available from public servers, including MaxCDN's jsDelivr or Cloudflare's cdnjs.
It is also possible to include Velocity directly from content delivery networks. (The integrity attribute is used for Subresource Integrity.) It is recommended to always use HTTPS for resources but this can be replaced with // to make use of protocol relative URLs.
Velocity has two usage styles:
Animation calls in Velocity consist of supplying the desired element(s) to animate, an animation property map to specify the CSS properties to be animated, and an optional options object to specify animation settings (e.g. duration).
Velocity accepts one or more arguments. The first argument, which is required, can either be the name of a predefined Velocity command (e.g. scroll or reverse) or an object consisting of CSS properties to be animated:
The second argument, which is optional, is an object. It is used to specify animation options such as duration, easing, and complete (an arbitrary function to execute once the animation has completed):
Creating a series of consecutive animation calls in Velocity consists of placing velocity() calls back-to-back on the target jQuery element object:
Scrolling in Velocity consists of passing in "scroll" as Velocity's first argument — in place of the typical CSS properties map:
The browser will subsequently scroll down to the top edge of the element that Velocity was invoked on.
Animation reversal in Velocity consists of passing in "reverse" as Velocity's first argument:
Velocity's reverse command defaults to the animation options used in the prior call. Passing in a new options object extends the previous one:
Velocity was developed by Julian Shapiro to address a lack of performant and designer-oriented JavaScript animation libraries.1617 Stripe, a popular web developer-focused Internet technology company sponsored Shapiro on a grant to help provide the financial resources necessary to continue full-time development on Velocity.18
The high performance of Velocity's internal animation engine helped to repopularize JavaScript-based web animation, which had previously fallen out of favor for CSS-based animation due to its speed advantages over older JavaScript libraries that lacked a focus on animation.19
In September 2014, Shapiro released Velocity Motion Designer, a tool for designing animations on live production websites that allowed for real-time exporting of the generated animation code for subsequent use within an IDE.20 In March 2015, Peachpit published Shapiro's Web Animation using JavaScript book, which teaches both the beginning and advanced principles of developing web animations using Velocity. As of mid-2015, Velocity continues to be developed and maintained exclusively by Shapiro.21
In addition to Velocity's use in professional enterprise environments, it is also widely used for web development experimentation and beginner practicing. Proof-of-concept web development projects built on top of Velocity are commonly posted to CodePen (example), a leading community code sharing service.
"JavaScript Animation". 15 June 2015. http://davidwalsh.name/intro-javascript-animation ↩
julianshapiro (2014-10-09). "velocity/LICENSE.md at master · julianshapiro/velocity · GitHub". Github.com. Retrieved 2016-01-20. https://github.com/julianshapiro/velocity/blob/master/LICENSE.md ↩
"Major Contributor To Open Source Technologies, Julian Shapiro, Pulls Back the Curtains on SAAS Usage". Forbes.com. Retrieved 2016-01-20. https://www.forbes.com/sites/alextaub/2015/06/18/major-contributor-to-open-source-technologies-julian-shapiro-pulls-back-the-curtains-on-saas-usage/ ↩
"Velocity.js for designers". Studio Wolf. Retrieved 2016-01-20. http://www.studiowolf.com/blog/velocity-js-for-designers/ ↩
"CSS vs. JS Animation: Which is Faster?". 28 April 2014. http://davidwalsh.name/css-js-animation ↩
"Velocity, the Powerhouse of JavaScript Libraries". 11 October 2017. http://www.orbitinformatics.com/underrated-animation-engine-velocity-powerhouse-javascript-libraries/ ↩
Julian Shapiro (2014-06-16). "Incredibly Fast UI Animation Using Velocity.js". Sitepoint.com. Retrieved 2016-01-20. http://www.sitepoint.com/incredibly-fast-ui-animation-using-velocity-js/ ↩
"Search · stars:>1 · GitHub". Github.com. Retrieved 2016-01-20. https://github.com/search?p=19&q=stars%3A%3E1&s=stars&type=Repositories ↩
"Shortlist The Net Awards 2015 Celebrating the best in web design and development". Thenetawards.com. Retrieved 2016-01-20. https://thenetawards.com/vote/open-source/velocity-js/ ↩
"Animating Without jQuery – Smashing Magazine". Smashingmagazine.com. 2014-09-04. Retrieved 2016-01-20. https://www.smashingmagazine.com/2014/09/04/animating-without-jquery/ ↩
"The Simple Intro to SVG Animation". 31 July 2014. http://davidwalsh.name/svg-animation ↩
"Use Velocity.js to apply slick app-like motion effects | JavaScript | Web Designer". Webdesignermag.co.uk. 2015-01-21. Retrieved 2016-01-20. http://www.webdesignermag.co.uk/use-velocity-js-to-apply-slick-app-like-motion-effects/ ↩
"Velocity.js". Julian.com. Retrieved 2016-01-20. http://julian.com/research/velocity/ ↩
Team, Awwwards. "Interview with Julian Shapiro". Awwwards.com. Retrieved 2016-01-20. http://www.awwwards.com/interview-with-julian-shapiro.html ↩
Shapiro, Julian (2014-05-21). "Treat Open Source Like a Startup ★ Mozilla Hacks – the Web developer blog". Hacks.mozilla.org. Retrieved 2016-01-20. https://hacks.mozilla.org/2014/05/open-source-marketing-with-velocityjs/ ↩
Greg Brockman (2014-06-06). "Open-Source Retreat grantees". Stripe.com. Retrieved 2016-01-20. https://stripe.com/blog/open-source-retreat-grantees ↩
Aurelio De Rosa (2014-06-23). "Easily Improving jQuery Animations". Sitepoint.com. Retrieved 2016-01-20. http://www.sitepoint.com/easily-improving-jquery-animations/ ↩
Remix this video (2014-09-06). "Velocity Motion Designer: Overview". YouTube. Retrieved 2016-01-20. https://www.youtube.com/watch?v=7IxhIMIdkPs ↩
"Contributors to julianshapiro/Velocity". GitHub. https://github.com/julianshapiro/velocity/graphs/contributors ↩