Socket
Socket
Sign inDemoInstall

toolgif

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    toolgif

The only GIF tooltip plugin you need


Version published
Maintainers
1
Install size
13.1 kB
Created

Readme

Source

Toolgif

The only GIF tooltip plugin you need

Install

NPM

or use CDN

<script src="https://unpkg.com/toolgif"></script>

Usage

Simple Usage

<p>Lorem ipsum dolor sit <span class="my-class">cat</span>.</p>
<script>
   new Toolgif(".my-class").toolgif();
</script>

Simple usage CodePen demo

Visit the website for more examples and settings.

Customize

new Toolgif(".my-class", {
  width: 120,
  height: 100,
  borderRadius: 5,
  placement: "top",
  downsized: true, // File size under 2mb (see https://developers.giphy.com/docs/)
  preloader: // data url here(it's kinda long as you expect so i didn't put here)
}).toolgif();

License

Licensed under the MIT License.

Keywords

FAQs

Last updated on 29 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc