I'm looking to add a mouseover event to an SVG that was exported from After Effects. I'd like the SVG to play on mouseover
. So far, I've played around with the animation-play-state
attribute but it hasn't worked. I've also tried using onmouseover
in the script and tried adding an event listener for the mouseover
, but still nothing. What am I doing wrong?
var params = {
container: document.getElementById('bodymovin'),
renderer: 'svg',
loop: true,
autoplay: true,
animationData: animationData
};
var anim;
anim = bodymovin.loadAnimation(params);