0.1.0 • Published 9 years ago
gifvideo v0.1.0
Gifvideo
Play videos inline on iOS, just like GIF files
Install
Using npm:
$ npm install --save gifvideoUsing bower:
$ bower install --save gifvideoGifvideo can be used as a CommonJS module, AMD (with Require.js) or as a plain old Javacript global.
Usage
Make sure you have a <video%gt; element with a src and poster attribute (or the relevant source tags).
Then
var gifvideo = new Gifvideo(document.querySelector('video'));That's it. Note that Gifvideo only accepts HTML elements, no selector strings.
For an example see test.html.
API
.getElement()
Returns the element you've given in the constructor.
License
MIT © Hay Kranen
0.1.0
9 years ago