gifvideo
v0.1.0
Published
Play videos inline on iOS Safari, just like GIF files
Downloads
2
Readme
Gifvideo
Play videos inline on iOS, just like GIF files
Install
Using npm
:
$ npm install --save gifvideo
Using bower
:
$ bower install --save gifvideo
Gifvideo
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