Timgur / gifv

a web component for gif video with fallback to original gif
7 stars 0 forks source link

gifv

A web component for gif video with fallback to original gif. Inspired by Imgur's gifv and developed in order to push boundaries and learn more about custom elements.

Example

Add the gifv.js to the html document and add the below element to the body of the html file.

<gif-v src="http://i.imgur.com/w79nkJ8.gif"></gif-v>

Optional Attributes

noloop: Will stop gif from looping and will append a replay button to bottom left of image.