最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

一款基jquery超炫的動(dòng)畫(huà)導(dǎo)航菜單可響應(yīng)單擊事件

 更新時(shí)間:2014年11月02日 15:04:58   投稿:whsnow  
。這款導(dǎo)航菜單,初始時(shí)頁(yè)面中間一個(gè)按鈕,單擊按鈕,菜單從左側(cè)飛入頁(yè)中。再次單擊按鈕,導(dǎo)航飛入左側(cè)消息

今天給大家分享一款基jquery超炫的動(dòng)畫(huà)導(dǎo)航菜單。這款導(dǎo)航菜單,初始時(shí)頁(yè)面中間一個(gè)按鈕,單擊按鈕,菜單從左側(cè)飛入頁(yè)中。再次單擊按鈕,導(dǎo)航飛入左側(cè)消息。動(dòng)畫(huà)效果很非常炫。一起看下效果圖:

源碼下載

html代碼:

<ul>
<li><a >First</a></li>
<li><a >Second</a></li>
<li><a >Third</a></li>
<li><a >Fourth</a></li>
<li><a >Fifth</a></li>
</ul>
<button>
Animate</button>
<script src='jquery.js'></script>
<script> $('button').on('click', function () {
$('ul').toggleClass('animate');
}); //@ sourceURL=pen.js
</script>

css代碼:

body
{
text-align: center;
}

ul
{
width: 400px;
padding: 0;
margin: 0 auto;
}
ul.animate li
{
transform: translate(0);
}
ul.animate li:nth-of-type(1)
{
transition-delay: 0.05s;
}
ul.animate li:nth-of-type(2)
{
transition-delay: 0.1s;
}
ul.animate li:nth-of-type(3)
{
transition-delay: 0.15s;
}
ul.animate li:nth-of-type(4)
{
transition-delay: 0.2s;
}
ul.animate li:nth-of-type(5)
{
transition-delay: 0.25s;
}

li
{
list-style: none;
display: block;
padding: 20px;
margin: 12px 0;
border-radius: 5px;
font-family: Helvetica, sans-serif;
color: #fff;
background: #8DE48D;
transform: translate(-500%);
transition: transform 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.08);
}
li:nth-of-type(5)
{
transition-delay: 0.15s;
}
li:nth-of-type(4)
{
transition-delay: 0.3s;
}
li:nth-of-type(3)
{
transition-delay: 0.45s;
}
li:nth-of-type(2)
{
transition-delay: 0.6s;
}
li:nth-of-type(1)
{
transition-delay: 0.75s;
}

button
{
padding: 12px 18px;
border: none;
border-radius: 3px;
color: #fff;
background: #7DBED8;
}
button:focus
{
outline: none;
}

相關(guān)文章

最新評(píng)論

海晏县| 青冈县| 合水县| 山东省| 庄浪县| 三穗县| 于田县| 高淳县| 西盟| 迁西县| 高雄县| 壤塘县| 宁明县| 日土县| 田阳县| 瓦房店市| 铜陵市| 克拉玛依市| 内丘县| 奉新县| 湟源县| 卢湾区| 七台河市| 漯河市| 金川县| 姚安县| 呼和浩特市| 色达县| 永顺县| 万州区| 牙克石市| 济源市| 越西县| 桐柏县| 乌拉特前旗| 勐海县| 昔阳县| 安宁市| 尉氏县| 稷山县| 芜湖县|