4 Super Cool jQuery Navigation Hover Animation Plugins: HoverSlippery

Add-ons
2026-07-26 07:14 2 次浏览 • 0 次下载 1.1KB
4 Super Cool jQuery Navigation Hover Animation Plugins: HoverSlippery

Usage

Include the jquery and hoverSlippery.js files in your page.

1
2
<script src="jquery.min.js" type="text/javascript"></script>
<script src="hoverSlippery.js" type="text/javascript"></script>

HTML Structure

You can use the <nav> element as the navigation menu and place a group of unordered lists inside it.

1
2
3
4
5
6
7
8
9
10
11
<nav class="nav demo">
<ul>
<li class="nav__item active"><a href="#">Home</a></li>
<li class="nav__item"><a href="#">Fashion</a></li>
<li class="nav__item"><a href="#">Lifestyles</a></li>
<li class="nav__item"><a href="#">Travels</a></li>
<li class="nav__item"><a href="#">Music</a></li>
<li class="nav__item"><a href="#">About us</a></li>
<li class="nav__item"><a href="#">Contact</a></li>
</ul>
</nav>

Initialize the Plugin

After the page DOM elements have finished loading, initialize the navigation mouse-follow effect plugin using the hoverSlippery() method.

1
$('.demo').hoverSlippery();

Configuration Parameters

The default configuration options for the HoverSlippery plugin are as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$('.demo').hoverSlippery({
bgColor: '#394264',
speed: 300,
radius: '5px',
border: false,
borderColor: '#efefef',
borderTop: 0,
borderStyle: 'solid',
borderWidth: '1px',
borderTopLine: false,
twiceBorder: false,
underline:false,
overline:false
});
  • bgColor: The background color of the capsule.

  • speed: The animation speed.

  • radius: The capsule's border radius.

  • border: Whether to use a border.

  • borderColor: The border color.

  • borderTop: The width of border-top.

  • borderStyle: The style of the border.

  • borderWidth: The width of the border.

  • twiceBorder: Whether to use a double-line effect.

  • underline: Whether to use an underline effect.

  • overline: Whether to use an overline effect.


星河码客

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

关于本站

联系我们

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

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

Powered by Nuxt · Deployed on Cloudflare