Hello, i am an absolute noob with javascript and superscrollorama.
I am trying to fly in a few images when you scroll down the page.
The first images needs to fly-in from the left and the 2nd from the right.
It worked for 1 image but when i try to make other images fly-in non of them work (or only the first one).
Please help me!
html:
<h2 id="fly-it"><img src="img/image1.png"></h2>
<h2 id="fly-it2"><img src="img/image1.png"></h2>
script:
controller.addTween('#fly-it', TweenMax.from( $('#fly-it'), .5, {css:{right:'1000px'}, ease:Quad.easeInOut}));
controller.addTween('#fly-it2', TweenMax.from( $('#fly-it2'), .5, {css:{left:'1000px'}, ease:Quad.easeInOut}));