jquery.lavalamp 下划线随鼠标左右滑动的导航菜单效果

阅读更多

jquery.lavalamp 下划线随鼠标左右滑动的导航菜单效果

引入文件



 


 

 

HTML

 

javascript

$('#navlist').lavalamp({
    easing: 'easeOutBack'
});

 

参数

OPTION DEFAULT PARAMETERS DESCRIPTION NOTES
duration 1000 Integer Duration of transition animation.  
easing "swing" string Easing of transition animation. Include and read the easing plugin to use something other than swing.
margins false true/false Lava Lamp object's width and height covers the margins.  
setOnClick false true/false The Lava Lamp object moves to the a new element when you click.  
activeObj ".active" selector Default active element when page is loaded.  
autoUpdate false true/false Lava Lamp updates itself every interval.  
updateTime 100 Integer Time between updates if using autoUpdate.  
enableHover true true/false Enable mouseenter and mouseleave events. If your app is for touch devices, and touch is triggering hover.
delayOn 0 Integer Place a delay when you enter hover state before lavalamp object animates.  
delayOff 0 Integer Place a delay when you leave hover state before lavalamp object animates.  
enableFocus false true/false Animate on keyboard focus.  
deepFocus false true/false Animate on decendant focus.

 

css

/*背景颜色*/
.lavalamp-object {
    background-color:#ccc;
}

 

/*线条*/
.lavalamp-object {
 width: 9px;
 height: 32px;
 border-bottom-width: 1px;
 border-bottom-style: solid;
 border-bottom-color: #fff;
 color: #999999;
}

 

官网:http://lavalamp.magicmediamuse.com/

  • Lava_Lamp_master.zip (112.3 KB)
  • 下载次数: 0

你可能感兴趣的:(JavaScript,导航菜单,下划线,lavalamp)