Hey All - I'm using ScrollMagic and Timeline and Lottie and I cannot for the life of me figure out how to reverse this animation - anyone know how this would be done? The below animation works to animate the SVG forwards, but cannot figure out the reverse.
var controller = new ScrollMagic.Controller();
var home_section_1 = new TimelineMax();
var animation = bodymovin.loadAnimation({
container: document.getElementById('home-welcome-lottie'),
path: 'https://uploads-ssl.webflow.com/61967dbb50eec57a4e7fde97/61c24a15adb4d67e7bc1acb8_Homepage%20Hum%202.json',
renderer: 'svg',
loop: false,
autoplay: true,
name: "Hum",
});
home_section_1.to({frame:0}, 1, { frame: animation.totalFrames-1,
onUpdate:function(){
animation.goToAndStop((Math.round(this.progress() * 150)), true) },
ease: Linear.easeNone
});
new ScrollMagic.Scene({ triggerElement: '.home-welcome-content', triggerHook: 'onLeave',
duration: 1000, offset: 0 }).setPin(".home-welcome-content").addTo(controller)
.setTween(home_section_1);