jQuery 菜单插件:jVanilla Menu
jVanilla 是一款菜单类的 jQuery 插件,可以将现有的纯 CSS 下拉菜单添加各种功能。包括:
- Animations when showing submenus
- Support one submenu level
- Timed delay on mouseout
- Top level menu links can be inactive (on hover effect)
- Last submenu right-aligned
用法:
$(document).ready(function (){ $('.menu-hover').jVanilla({ speed : 50, // speed in milliseconds // of the opening animation animation : 'fading', // type of the animation // fading || sliding eventType : 'hover', // type of event that trigger // animation hover || click delay : 100, // the delay in milliseconds that // the mouse can remain outside // the submenu without it closing isHoverClickable : false, // set to true if you want to enable // the click on the first level link isLastRightAlign : true // set to false if you want to align // left the last submenu }); });
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!