I have svg mask and i want do second part animation slowly than first part. When my mask have big scale i want decrease it faster but when my logo contain to screen i should decrease speed of animation.
Now my animation have same speed along all animation cycle.
How is it work now: https://ko-ketka.com.ua/noar/index.html (sorry that it's not codepen i can't paste my code )
So that's my code:
let windowWidth = window.innerWidth
var t0 = gsap.timeline({
scrollTrigger: {
trigger: ".header-section",
scrub: true,
pin: true,
start: "top top",
end: "+=100%",
markers: true,
}
});
t0.from(".header-section .overscreen .logo_mask", {"mask-size": (windowWidth*18)+"px", "-webkit-mask-size": (windowWidth*18)+"px"})
.to(".header-section .overscreen .logo_mask", {"mask-size": "814px", "-webkit-mask-size": "814px"})