0

I have a list of bootstrap columns (3 per row) with each one having a Vimeo video inside.

How can I do it so that when you hover on each column, the video inside this column autoplay, and when you hover off, this video pauses?

I tried the below so far but it's crashing the iframe:

    $('.product-card-media').on('mouseover',function(){
      var player = $("#"+this.id);
          froogaloop = $f(player[0].id);

      player.mouseover(function(){
          froogaloop.api('play');
      }).mouseout(function(){
          froogaloop.api('pause');
      });
    });
robin geagea
  • 79
  • 1
  • 11

0 Answers0