I would like to get help, on how to slow down ScrollTrigger fromTo animations.
The goal is to increase the duration of the animations (and the positon of the last fromTo), and this will make the animations slower.
Since scrub turned true (to control the animation with the scrolling), the duration property does not have any effect.
What am I missing?
Thank you in advance for your help!
tl = gsap.timeline({
scrollTrigger: {
trigger: '.feature-holder',
scrub: true,
pin: true,
pinSpacing: true,
markers: false,
},
});
tl
.fromTo(
'.feature-overlay',
{
autoAlpha: 0,
},
{
autoAlpha: 0.25,
duration: 3,
},
)
.fromTo(
'.feature-text',
{
autoAlpha: 0,
y: 5,
},
{
autoAlpha: 1,
y: 0,
duration: 1,
},
'>',
)
.fromTo(
'.feature-text',
{
autoAlpha: 1,
},
{
autoAlpha: 0,
duration: 1,
},
'>+=10',
);