const element = document.getElementById("box"); Velocity(element, { opacity: 0.5 }, { duration: 1000 }); Use code with caution. Velocity.js
: This CDN automatically provides the latest stable release. Use code with caution. cdnjs : Ideal if you need a specific version. velocity js download
: Unlike many other libraries, Velocity.js can animate SVG properties directly. const element = document
Once you have downloaded or linked the library, you can start animating immediately. const element = document.getElementById("box")
: Visit velocityjs.org and click the download link to save the .js or .min.js file.