Hi.
I'm animating a div container clip-path using gsap. The idea here is to turn the container from a rectangle shape into a pill shape.
This is how I'm doing it inside a timeline:
const videoPinTl = $gsap.timeline({
scrollTrigger: {
trigger: '.video-wrapper-pin',
start: `center center`,
end: "+=1000",
pin: true,
scrub: true,
}
})
.fromTo('.video',
{
clipPath: 'inset(0% 0% round 50px)',
}, {
duration: 1,