2.0.6 • Published 7 years ago

sliphover v2.0.6

Weekly downloads
8
License
-
Repository
-
Last release
7 years ago

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,
    ...
});
OptiontypedefaultDescriptionExample
heightstring100%The height of the overlay. e.g.200px,50%view
targetstring'img'Specify witch element the overlay will aplly on. Any valid CSS selector will do.view
captionstring'title'Witch attribute will be the content of the overlay. You can use custom HTML5 data attribute. e.g. data-captionview
durationnumber/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.500view
fontColorstring'#fff'The color of the text within the overlayview
backgroundColorstring'rgba(0,0,0,.5)'The background color of the overlay. Any valid CSS color value will doview
backgroundColorAttrstring'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
reverseboolfalseWhether the animation direction is reversedview
textAlignstring'center'The horizon align of the captionview
verticalMiddlebooltrueThe vertical align of the captionview
withLinkbooltrueif image is wraped with a link the overlay will be clickable, set false to disable clickview

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

2.0.6

7 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago