-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
Right now fullPage.js only automatically plays videos when reaching the section if they contain the attribute data-autoplay
.
However, it could make sense to automatically apply the same behaviour to elements containing autoplay
.
The developer would expect those to automatically play too.
So, while it's true that developers might want to apply data-autoplay
and not autoplay
in order to only start playing a video when landing on that specific section, it doesn't seem to make sense to apply autoplay
but not data-autoplay
.
Whenever autoplay
is present, data-autoplay
should be too.
Steps to reproduce it
- Access https://codepen.io/alvarotrigo/pen/rNEgJzJ
- Scroll down
- Video won't autoplay
Versions
All browsers and fullPage.js <= 4.0.29