YTgif
YTgif is JavaScript library that let you integrate Youtube Videos as gif loop on your website easily.
How to
Just add the lib ytgif.min.js in your html and call the ytgif() function.
To generate a gif add a div
with a class ytgif
with some attributes.
- data-ytgif-id : is a the Youtube video id
- data-ytgif-width : the width wanted
- data-ytgif-height : the height wanted
Multiple Videos
Yeah you can add as many div
as you wish !