As you see on codepen animation working with gsap.to... function
I want to make it with timeline. for example my other scrolltrigger codes like that:
let tl = gsap.timeline({
scrollTrigger: {
scroller:".allsite",
trigger:".s2",
scrub: true,
pin: true,
anticipatePin:true,
start: "top top",
end:"100%"