Is there an obvious reason why this scrollTrigger animation JUMPS down into its initial location?
I thought it might be the immediateRender.... but I've even tried setting it to true but it only fixes the scrolling into the start trigger.... when you scroll OUT of the start trigger it still jumps.
Essentially, we placed an item in the ideal location with css. Then we want to setup a scrollTrigger animation that moves that item from just above its initial Y to just below its initial Y.
gsap
.timeline({
scrollTrigger: {
trigger: container,
scrub: true,
start: 'top bottom',
end: 'bottom top',
markers: true,
},
})
.fromTo(
circle,
{
y: '+=100px',
},
{ y: '-100px', ease: 'none' },
0
)
.fromTo(
bubble,
{
y: '-=150px',
},
{ y: '+150px', ease: 'none' },
0
);