GSAP Clipping Mask

Tutorial

QR code to Billie Tuitt's instagram, scan with phone
ScrollTrigger
Webflow
Animation
GSAP
[london baseD: 
00:00
]
[
GSAP Clipping Mask Tutorial
]

Learn how to use a CSS clip-path and GSAP to create an unmasking scrolling transition.

GSAP Clipping Mask

[video coming soon]
GSAP Clipping Mask
[
GSAP Clipping Mask
]

<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/ScrollTrigger.min.js"></script>

<script>
 gsap.registerPlugin(ScrollTrigger);

 const maskTimeline = gsap.timeline({
   scrollTrigger: {
     trigger: ".mask_list",
     start: "top center",
     end: "bottom center",
     scrub: true,
     markers: false
   }
 });

 // Animate each .mask_visual in sequence
 maskTimeline
   .fromTo('.mask_visual._1', {
     width: '0vw',
     height: '0vh',
     clipPath: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)'
   }, {
     width: '100vw',
     height: '100vh',
     clipPath: 'polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)',
     ease: "none"
   })
   .fromTo('.mask_visual._2', {
     width: '0vw',
     height: '0vh',
     clipPath: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)'
   }, {
     width: '100vw',
     height: '100vh',
     clipPath: 'polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)',
     ease: "none"
   })
   .fromTo('.mask_visual._3', {
     width: '0vw',
     height: '0vh',
     clipPath: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)'
   }, {
     width: '100vw',
     height: '100vh',
     clipPath: 'polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)',
     ease: "none"
   })
     .fromTo('.mask_visual._4', {
     width: '0vw',
     height: '0vh',
     clipPath: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)'
   }, {
     width: '100vw',
     height: '100vh',
     clipPath: 'polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)',
     ease: "none"
   });
</script>

view more

scroll
Tutorial
[
GSAP Flip Change View
]

Learn the art of creating global components, allowing you to effortlessly reuse video elements that perfectly fit and cover their containers. Harness the power of Webflow's custom elements.

Tutorial
[
Object Fit Videos
]

Learn the art of creating global components, allowing you to effortlessly reuse video elements that perfectly fit and cover their containers. Harness the power of Webflow's custom elements.

Tutorial
[
Advanced GSAP Text Animation
]

Advanced GSAP scrolling text animation - tutorial coming soon.

[drag]