• I’m using animations within a slider and like other threads have mentioned, the shortcode “autoplay” setting doesn’t work as I’d like it to.

    I can run bodymovin.stop() and bodymovin.play() but that affects all animations on the page. I’d much rather only start playing the instance that’s in view, which my slider library can help with.

    Bodymovin allows methods to run on individual instances (“bodymovin.play() — with 1 optional parameter name to target a specific animation”, such as bodymovin.play('thisOne')) but that doesn’t seem possible here because all animations generated by the plugin don’t have a name specified. Running console.log(lottie.getRegisteredAnimations()); confirms this.

    Would it be possible to give each animation a unique variable name so it could be targeted like this? Each container has a unique ID but I haven’t found a way to use it for targeting the animation within it.

    Thank you!

  • The topic ‘Can’t manually trigger play/pause because ‘name’ isn’t specified’ is closed to new replies.