Closed ghost closed 11 years ago
For those, who are also in doubt, it's quite simple:
100% of timeline is computed from a total count of every tweens inserted in the timeline.
So when i have:
tl.insert(TweenMax.to($box, 2, {css: {left: -200}}), 'part2');
I put 2 seconds long animation into 4th second of timeline. The total duration of timeline is 6 seconds.
When I set scroll duration of superscrollorama to 600 px, it's like this:
Check out a website where I used this awesome plugin! ;) http://carlaine.com/en
Hello,
first of all I have to thank you for this awesome script.
I don't understand combining of
.addTween()
withTimelineMax
(with labels or without) and scroll duration in pixels.For example:
It does what I expect: at 500px of window scrollTop it begins animation to 300px left in 1s. Then wait 3s, then begins animation to -200px left in 2s.
But I would like set scroll duration in 600px. So instead:
I want this:
It works also, but could you please explain me, how do you convert seconds in TweenMax or in labels of TimelineMax into scrolling pixels? When I change:
to:
what happens then? How many seconds is at 100% of timeline?
Thanks very much for reply.