Skip to content

serdaronedio/how-to-create-a-sticky-floating-video-on-page-scroll

 
 

Repository files navigation

Instructor: Louie Rootfield

If you have found yourself browsing media websites recently–video streaming services, news websites, Facebook and so on–you might have noticed a trend regarding their video players. If we scroll down a page where a video is present, it will float and shrink the player, sticking it to the side of the viewport instead of losing it from view. This allows the users to keep an eye on the video, whilst looking through the other content at the same time. In this tutorial I’m going to show you how to recreate the same experience–so without further ado, let’s get started!

View the demo

About

Float video while the user is scrolling the page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 44.2%
  • HTML 37.0%
  • CSS 18.8%