Video autoplay inside article slider, when video clip is visible?
Hi,
I have an article slider, which contains articles with HTML5 video clips inside. I would like to achieve that each video clip would play when visible.
I have this class active when an article becomes visible:
- opacity: 1;
and this when invisible:
I thought maybe I could tie the auto play event to the clip's position or visibility.
I would appreciate if someone would share his thoughts with me on this.
Thanks!