Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytgif

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytgif

Insert Youtube videos as gif

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

<script src="/ytgif.min.js"></script>
<script>
  ytgif();
</script>

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
<div
  class="ytgif"
  data-ytgif-id="wGyUP4AlZ6I"
  data-ytgif-width="1280"
  data-ytgif-height="1080">
</div>

Multiple Videos

Yeah you can add as many div as you wish !

Keywords

FAQs

Package last updated on 23 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc