Start playing a video when a user scrolls and a video is in view

Hey there,

I was wondering if it’s possible to play a video when a user scrolls and a video is in view?

Thanks for your help.

Hi @Arno you may find this resource helpful:

Hi @Waldo,

Thanks for the link.
As I’m not a senior dev, so I have 2 questions:

  • Does it works with a video embedded in an embed block?
  • Can I use this kind of code then (for the video):



Thanks for your help :pray:

Any Ideas? :cry:

Hi @waldo, I still cannot achieve this, do you have any idea how I can do it? Thanks :pray:

Hi @Arno, do you have a read-only link to the site that you are trying to implement the video scroll code from the Stack Overflow page? It seems like that should work.

If you have a test page, it will be a lot easier to help get it working.

Hi @cyberdave I don’t have a website ready yet, but I’m gonna create a prototype and post the link here. Thanks :pray:

Hi @cyberdave @Waldo here is the link to my prototype:

I did succeed in making the YouTube Video play on scroll :slight_smile:
but didn’t manage to make it responsive even if I tried the spec found on [Tutorial] Responsive Video using HTML Embed

Any ideas how to make it responsive?


PS: Here is the link to the live website:

Any answer of how to get embedded to play on scroll?

Hello @joealterio I need to explore more with this experiment. I’ll let you know if I find the way to do it with embedded videos.

Maybe this plugin work

Thanks @AntonioBalderas I tried to implement it into webflow but didn’t manage to make it work yet.

Oh wow, that’s bad ass. Thanks! I’ll try to futz with it tonight.

Weblow have made it work on their new website, lets ask them to help answer this for the community hey @PixelGeek ??