jQuery Animated Overlay Display Plugin: SlipHover

Add-ons
2026-08-03 12:47 3 次浏览 • 0 次下载 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
星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare