Scene ignores triggerElement #611

Open
iamjonasmarlo opened this Issue Oct 29, 2016 · 0 comments

Projects

None yet

1 participant

@iamjonasmarlo

I've got a problem with the triggerElements. It seems that ScrollMagic ignores it. If I'm using a percent duration value, the scene uses 100% of the hole body.

This is my javascript:

var controller = new ScrollMagic.Controller();

var scene1 = new ScrollMagic.Scene({
    triggerElement: "#test",
    duration: "100%",
    offset: 0,
    triggerHook: 0, // don't trigger until #block hits the top of the viewport
    reverse: true
})
.setTween('.moby-wrapper svg', {right: "100%"})
.addIndicators({name: "fish"})
.addTo(controller);

The Scene should use 100% of the trigger element. Instead of it the hole body height ist used. Check it out: HERE

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