Jump to content

Scrolling effects for a video.

Recommended Posts

Site URL: https://www.newbridgegv.com/


Hi thanks for your help in advance and reading my post. I'm also trying to implement a video scroll function. This is what I am going for https://codepen.io/j-v-w/pen/ZEbGzyv.  Both options have worked for me in a local test ScrollMagic and custom code. I have used Scrollmagic with the cdn from their web library.  The way the custom code works was indexing the many pictures that made up the video and then looping through them. This is the code I wrote for this.

const frameCount = 101;

const preloadImages = () => {

  for (let i = 1; i < frameCount; i++) {

    const img = new Image();

    img.src = currentFrame(i);




I can add the video to the page but there are no scrolling effects. Has anyone got a clue of how to implement this? I also thought about using Lottie as an option but have not built out the project yet so I am open for suggestions.




Link to comment
  • Replies 2
  • Views 281
  • Created
  • Last Reply
  • 2 weeks later...


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.