Sign inSign up

jQuery Animated Overlay Display Plugin: SlipHover

Add-ons
2026-08-03 12:47 3 views • 0 downloads 208.2KB
jQuery Animated Overlay Display Plugin: SlipHover

Usage

1. Include the Files

1
2
<script src="js/jquery.min.js"></script>
<script src="js/jquery.sliphover.min.js"></script>

2、HTML

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div id="container">
<ul>
<li>
<a href="#">
<img src="img/1.jpg" data-caption="A title or description goes here">
</a>
</li>
<li>
<a href="#">
<img src="img/2.jpg" data-caption="A title or description can go here">
</a>
</li>
<li>
<a href="#">
<img src="img/3.jpg" data-caption="HTML code can also be used">
</a>
</li>
……
</ul>
</div>

3、JavaScript

1
2
3
$(function(){
$('#container').sliphover();
});

Configuration

Properties/MethodsTypeDefault ValueDescription
heightString100%Overlay height
targetStringimgThe element to which the overlay will be applied
captionStringtitleThe attribute to be displayed as a title or description. You can use the custom HTML data attribute data-caption.
durationString/Integer
Animation duration in milliseconds. Higher values result in slower animations.
fontColorString#fffFont color
backgroundColorStringrgba(0,0,0,.7)Background color
reverseBooleanfalseReverse animation
textAlignStringcenterHorizontal text alignment. Options: left, center, right
verticalMiddleBooleantrueVertically center the text
withLinkBooleantrueDisable image links so they cannot be clicked