Hello
I have to execute scenes not only on a trigger, but also on ending of previouse scene. Moreover, I want to exectue scene after some scrolling from a previouse trigger.
Now I use offset:
var scene = new ScrollMagic.Scene({ triggerElement: "#some_element", duration: "100%", offset: window.innerHeight*2 })
but this works badly on mobile devices, because I ask the user to turn horizontally and innerHeight seems not to update. On horizontal orientations from the begining (desktop, horizontal mobiles) works well.
Hello I have to execute scenes not only on a trigger, but also on ending of previouse scene. Moreover, I want to exectue scene after some scrolling from a previouse trigger.
Now I use offset:
var scene = new ScrollMagic.Scene({ triggerElement: "#some_element", duration: "100%", offset: window.innerHeight*2 })
but this works badly on mobile devices, because I ask the user to turn horizontally and innerHeight seems not to update. On horizontal orientations from the begining (desktop, horizontal mobiles) works well.
What's the best universal solution?