Streaming live at 10am (PST)

Fullpage.js + Background video


I’ve implemented fullpage.js code on my website, following this step by step:

Inside all the div’s I have a background video, and it’s not playing with the fullpage code.

public link:

I’m not sure why this is happening, background videos are supposed to auto play.
Any help would be much appreciated :grinning:


You can ask this Q also in Github (Fullpage.js). This is an issue with Fullpage.js and videos.
I dont see you added “fullpage.js” libary!!

Also add the publish HTML (in edit mode its impossible to see how Outer assets works - you should test the public version)

Related issues:

1 Like

Thanks @Siton_Systems, I added the fullpage.js in the custom code section of the project settings, like it says in the step-by-step tutorial. You can see it works in the link:

I tried adding the code from Github but don’t see any difference :pensive:

@Siton_Systems I’ve looked at the instructions on Github but I’m not sure where to use it and how in the Webflow designer.
There’s also a problem with this script and interactions (none of them work on scroll).
I’m not very good with Java Script, does anyone know how to solve this?


Paste this after the line where you initialize fullpage.

$('video').each((i,v) =>;
1 Like

thanks @samliew I tried to paste that code inside the script but it doesn’t work… :sweat:

This is where you initialize fullpage

$(document).ready(function() { 
    $('#fullpage').fullpage(); // <-- THIS LINE


Thanks @samliew !
It works now when the site is loaded, and when scrolling down on the page, but if I scroll back up again the videos stop. Any idea how it can keep on looping all the time?

Thanks @samliew it works now! :smile:

I added this code after initializing fullpage.js:


The vidoes keep on playing but the fullpage.js stopped working :sweat:

@samliew What am I doing wrong?

Based on the documentation, you are supposed to add custom attributes to the video element. The code should already be perfect.

@samliew It all worked before I added the ‘video data-keepplaying’
Should the ‘video data-keepplaying’ be added to the video element itself?

not the code… :+1:

@samliew so the video should get a unique ID?

Are you sure I put in the right code? It makes the fullpage effect stop working so I suspect something is wrong with the code itself. When I erase this part the fullpage continues to work (the videos stop).

$(document).ready(function() { 
    $('video').each((i,v) => { $(v).attr('data-keepplaying', '');; });

@samliew thanks so much for your help!

I implemented the code exactly like you wrote it, the videos work, but again the fullpage.js isn’t working :frowning:


This is the code I put in the before /body tag

<script type="text/javascript" src=""> $(document).ready(function() { 
$('video').each((i,v) => { $(v).attr('data-keepplaying', '');; });

You need a separate script tag for the js file. Don’t combine.

1 Like

Thank you @samliew ! I finally got it right :grinning:

How did you get this to work - I did everything you have done? this is my code.

/* JS CODE */

< script type=“text/javascript”>
jQuery(document).ready(function() { (‘video’).each((i,v) => { (v).attr('data-keepplaying', '');; }); (’#fullpage’).fullpage({

    scrollingSpeed: 1000,
    navigation: true,
    slidesNavigation: true,



/* HTML */

< script src=“”>< /script>

< script src="">< /script>

/* HTML */

< div id=“fullpage”>
< div class=“section”>
< div class=“section”>
< div class=“section”>
</ div>

p.s. i know i have spaced in the tags