New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gifotrope

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gifotrope

take control of your animated gifs

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

gifotrope

take control of your gifs. demo

gifotrope has two parts:
  1. a node module that helps you create a single multi-frame png from an animated gif
  2. a jQuery pluggin that animates your png as a visitor scrolls the page

npm gifotrope

depends on imagemagick

npm install gifotrope
node node_modules/gifotrope/cli.js [path to gif or directory containing gifs]

jQuery pluggin

  1. include jquery and gifotrope.js on your page
  2. $(selector).gifotrope()

The crucial thing that gifotrope needs to know is how many frames your original gif had. If you used the included node module to create the image it will use a naming convention like image-{# of frames}.png. gifotrope.js will look for the dash and digits at the end of the file name to determine the # of frames. If you don't want to use this naming convention you can also pass { frames : ??? } into the pluggin when you call it. Additionally you can include a data attribute data-frames="??" in the first DOM element that you'll be gifotropofying

see examples in site/index.html

FAQs

Package last updated on 18 May 2015

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