Target classes with Vivus JS
jQuery(function () {
// Define your callback
var myCallback = function () {
// action to execute after SVG animation is complete - optional
};
// Get your HTMLCollection of SVG to animate
var myElements = jQuery(".animate svg");
// Go across them to create a Vivus instance
// with each of them
for (var i = myElements.length - 1; i >= 0; i--) {
new Vivus(myElements[i], {
duration: 50,
type: 'async'
}, myCallback);
}
});
// Credits: https://github.com/maxwellito