ScrollMagic with GSAP is lagging (except Chrome) #616

Open
iamjonasmarlo opened this Issue Nov 8, 2016 · 0 comments

Projects

None yet

1 participant

@iamjonasmarlo

I'm using ScrollMagic in combination with GSAP for some fancy scroll animation on a customer website. On my iMac (8Gb / i5) in combination with chrome it works quite fine but in other browsers like firefox and safari (mobile and desktop) it's lagging as hell!

This is my Code

var controller = new ScrollMagic.Controller();

var scene1 = new ScrollMagic.Scene({
    triggerElement: '.index',
    duration: "90%",
    triggerHook: 0, // don't trigger until #block hits the top of the viewport
    reverse: true
})
.setTween('.index-content', {opacity: 0})
.addTo(controller);

You can have a look over here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment