I have a working Jquery animation like this:
const e = $("#span-7");
e.css({fill: "#4287f5", transition: "0.5s"});
How can I detect the end of the animation?
I tried this with no luck!
e.one("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd", function(){
console.log('Animation Ended!');
});
Edit: Guys please, animate does not work for fill animation. I need to use .css animation.