npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

docsify-gifcontrol

v0.2.1

Published

A docsify plugin that adds customizable player controls to GIFs

Downloads

1,030

Readme

docsify-gifcontrol

A docsify plugin that adds customizable player controls to GIFs. GIFs will play on hover or on click depending on your configuration.

Full Documentation with live examples at https://gbodigital.github.io/docsify-gifcontrol

Quick Start

Add the CSS file to the top of your docsify index.html

<link rel="stylesheet" href="//unpkg.com/docsify-gifcontrol/dist/docsify-gifcontrol.css">

Add the JavaScript file below your docsify script tag

<script src="//unpkg.com/docsify-gifcontrol/dist/docsify-gifcontrol.js"></script>

Add a GIF in your markdown

![](docs/charlie.gif)

Examples

Hover to play (default)

<!-- Hover to play, unhover to pause (default) -->
![](charlie.gif)

Click to play

<!-- Click to play, click again to pause (using inline option) -->
![](charlie2.gif "-gifcontrol-mode=click;")

Customization

You can customize almost everything about the player. For more information see the Configuration section.

<!-- Customize colors and icons -->
![](charlie3.gif "-gifcontrol-iconColor=#ff0000; -gifcontrol-overlayColor=rgba(0,0,0,0.7); -gifcontrol-playIcon=<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z\"/></svg>;")

Additional customization

More customization examples can be found in the Configuration section. You can also check out the source of this documentation in the docs folder on Github.

Excluding Images

By default all GIFs in image tags will be parsed to use the player overlay unless they fall in to one of the four categories below:

  • Image tags with the .emoji class are ignored
  • Image tags with a data-gifcontrol-disabled attribute are ignored
  • Image tags that do not contain the .gif string in their src attribute are ignored
  • Images created with markdown that have the -gifcontrol-disabled; option in the title component of the image markdown are ignored

Example

<!-- The plugin will ignore the gif below -->
![](charlie.gif "-gifcontrol-disabled;")

Attributions

License

Except where otherwise noted, this software is licensed under the MIT license. Please see the the documentation for more information.