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

sliphover

v2.0.6

Published

apply direction aware animation caption to images

Downloads

41

Readme

SlipHover

SlipHover apply direction aware hover animation for the caption of an image.

Index

Quick start

include the files

<script src="path/to/jquery.min.js"></script>
<script src="path/to/jquery.sliphover.min.js"></script>

call the the plugin on a container as your wish

$("#container").sliphover();

All done!

Options

you can custom the caption by passing options when call the plugin, all available options are listed below.

call the the plugin on a container wish you wish

$("#container").sliphover({
    option: value,
    option2: value2,
    ...
});

| Option | type | default | Description | Example | |-----------------|---------------|------------------|--------------------------------------------------|------------- | | height | string | 100% | The height of the overlay. e.g.200px,50% | view | | target | string | 'img' | Specify witch element the overlay will aplly on. Any valid CSS selector will do.| view | | caption | string | 'title' | Witch attribute will be the content of the overlay. You can use custom HTML5 data attribute. e.g. data-caption | view | | duration | number/string | 'fast' | How long will the animation will be in millisecond, fast equals to 200 and slow equals to 600. You can give you own number. e.g.500 | view | | fontColor | string | '#fff' | The color of the text within the overlay | view | | backgroundColor | string | 'rgba(0,0,0,.5)' | The background color of the overlay. Any valid CSS color value will do | view | | backgroundColorAttr | string | 'data-background' | Also you can specify individual color for each overlay via the data-background attribute like this data-background="rgba(120,100,240,0.85)" | view | | reverse | bool | false | Whether the animation direction is reversed | view | | textAlign | string | 'center' | The horizon align of the caption | view | | verticalMiddle | bool | true | The vertical align of the caption | view | | withLink | bool | true | if image is wraped with a link the overlay will be clickable, set false to disable click | view |

Demo

Besides examples in the option table above, there are a few nice demos shows sliphover can work well with other image gallery plugins such as Wookmark, freewall and isotope.

Compatibility

  • Requirs jQuery 1.7+
  • Works well with all morder browsers and IE9+.

License

Licensed under the MIT License