The parallax scrolling seems to work great when the object scrolls at a faster rate than a normal scroll, however if you try to slow an object down so it scrolls slower than normal, the object has a jerky scroll.
Example:
controller.addTween(
'.opening-container',
(new TimelineLite())
.append([
TweenMax.fromTo($('.opening-content'), 1,
{css:{top:220}, immediateRender:true},
{css:{top:900}})
]),
1900, // scroll duration of tween
500
);
What is the right approach if you want to slow the object down and make it scroll at a slow rate. Above, I attempted this by absolute positioning and adding to the top value.
The parallax scrolling seems to work great when the object scrolls at a faster rate than a normal scroll, however if you try to slow an object down so it scrolls slower than normal, the object has a jerky scroll.
Example: controller.addTween( '.opening-container', (new TimelineLite()) .append([ TweenMax.fromTo($('.opening-content'), 1, {css:{top:220}, immediateRender:true}, {css:{top:900}}) ]), 1900, // scroll duration of tween 500 );
What is the right approach if you want to slow the object down and make it scroll at a slow rate. Above, I attempted this by absolute positioning and adding to the top value.