Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 747 Bytes

README.rst

File metadata and controls

28 lines (18 loc) · 747 Bytes

jQuery Embedly Scroll Play

A simple plugin that works with Embedly and Player.js to autoplay videos when they are scrolled into frame.

Install

You will need to add the ScrollPlay and Player.js libs your page:

<script type="text/javascript" src="//cdn.embed.ly/player-0.0.10.min.js"></script>
<script type="text/javascript" src="//cdn.embed.ly/jquery.embedly.scrollplay-0.0.1.min.js"></script>

Using ScrollPlay

Currently this is pretty simple plugin. Here is all of it:

$('iframe.embedly-embed').scrollplay();

Done. That's it. Good Talk. Glad we did this.

Demos