Clone Project

Mastering GSAP Interactions in Webflow: Pin a Video on Scroll (Picture-in-Picture Effect)

Created by
Francesco Castronuovo
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
AI Description

This tutorial demonstrates how to create a picture-in-picture style video interaction in Webflow, where a video follows the user as they scroll and shrinks into the bottom-right corner of the viewport. It showcases the integration of GSAP-powered interactions with sticky positioning and layout logic.

Key Features:

  • Triggers the interaction when the video starts leaving the viewport.
  • Uses position: sticky to pin the video cleanly.
  • Animates movement and scale with a single Animate Variable action.
  • Employs Webflow Variables to drive multiple transforms.
  • Compensates for sticky + translateY behavior using a clean layout technique.
  • Ensures responsive behavior and reduced motion support.

Design Elements:

  • Picture-in-picture style layout that enhances user engagement.
  • Utilizes sticky positioning for a dynamic video display.
  • Incorporates smooth animations for a polished user experience.

Potential Use Cases:

  • Educational websites featuring long-form video content.
  • Blogs or articles that include video tutorials.
  • E-commerce sites showcasing product videos alongside descriptions.
  • Portfolio sites for creatives wanting to highlight video work.
  • News websites that provide video coverage of events.

Conclusion: This component effectively combines advanced animation techniques with practical layout strategies, making it a valuable resource for developers looking to enhance user interaction with video content.

Description from Webflow:  
In this episode of Mastering GSAP Interactions in Webflow, we build a smooth picture-in-picture style video interaction for long-form layouts — where a video follows the user as they scroll, shrinking into the bottom-right corner of the viewport. This tutorial is a great example of how powerful Webflow’s new GSAP-powered interactions can be when combined with sticky positioning, Webflow Variables, and a bit of smart layout logic. Along the way, we’ll cover: ✔ How to trigger the interaction when the video starts leaving the viewport ✔ How to pin the video cleanly using position: sticky ✔ How to animate movement and scale using a single Animate Variable action ✔ How to use Webflow Variables as a driver for multiple transforms ✔ How to compensate for sticky + translateY behavior with a clean layout technique ✔ How to keep the setup more thoughtful with responsive behavior and reduced motion support 👉 Watch on YouTube: https://youtu.be/7g71nPnreuY
Tags from Webflow: 
cloneable,  madeinwebflow,  gsap,  gsapscrolltrigger,  scrollinteraction,  video,  interactions with gsap
.