Vimeo autoplay on scroll
*
2655 visibility 0 arrow_circle_up 0 arrow_circle_down I'm trying to get my embedded Vimeo video to pause on exiting the viewport and allow another embedded Vimeo video to play upon entering viewport. I've been exploring various solutions and discovered Froogaloop which works perfectly, however I believe is the old Vimeo api. I got an exact example working of the video pausing on exiting, but its using an ID rather than class so unable to use on more than one video and not entirely sure how to accomplish this. Example - Jsfiddle Jquery : Any help would be immensely appreciated :) Answer - 1 verified0 arrow_circle_up 0 arrow_circle_down You need different player objects - one for each iframe. For performance reasons you should create the list of players outside of your onScroll function. You can test here: https://jsfiddle.net/oxf4dtn3/ Note: it is not possible to start any video automatically, if its sound is on. You can mute vimeo videos using the parameter "&muted=1" |