国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > CSS > 正文

css3動畫過渡實現(xiàn)鼠標(biāo)跟隨導(dǎo)航效果

2024-07-11 08:25:15
字體:
供稿:網(wǎng)友

本篇文章主要介紹了css3動畫過渡實現(xiàn)鼠標(biāo)跟隨導(dǎo)航效果,分享給大家,具體如下:

鼠標(biāo)跟隨導(dǎo)航效果

效果知識點:html/css布局思維, div+css講解,css3動畫,盒子模型, 浮動與定位,鼠標(biāo)事件。

html代碼:

<div class="wrap"> <ul> <li style="background-position:0px 0px; border-top:1px dotted #ccc;border-left:1px dotted #ccc;"></li> <li style="background-position:-230px 0px; border-top:1px dotted #ccc"></li> <li style="background-position:-460px 0px; border-top:1px dotted #ccc"></li> <li style="background-position:-690px 0px; border-top:1px dotted #ccc"></li> <li style="background-position:-920px 0px; border-top:1px dotted #ccc"></li> <li style="background-position:-1150px 0px;border-left:1px dotted #ccc;"></li> <li style="background-position:-1370px 0px"></li> <li style="background-position:-1600px 0px"></li> <li style="background-position:-1830px 0px"></li> <li style="background-position:-2060px 0px"></li> <li style="background-position:-2290px 0px;border-left:1px dotted #ccc;"></li> <li style="background-position:-2520px 0px"></li> <li style="background-position:-2750px 0px"></li> <li style="background-position:-2980px 0px"></li> <li style="background-position:-3210px 0px"></li> </ul> <div class="box"></div>

css代碼:

<style> *{ margin:0px; padding:0px; } html{ height:100%; } body{ width:100%; height:100%; background:url("images/wallpaper4.jpg"); background-size:100% 100%; overflow: hidden; } .wrap{ position:relative; width:1156px; height:450px; margin:50px auto; } .wrap ul li{ position:relative; z-index:10; width:230px; height:150px; float:left; list-style:none; border-right:1px dotted #ccc; border-bottom:1px dotted #ccc; background:url("images/clients.png") no-repeat; -webkit-transition:1s; -moz-transition:1s; -ms-transition:1s; -o-transition:1s; transition:1s; } .box{ position:absolute; left:0px; top:0px; z-index:2; width:230px; height:150px; background:rgba(0,0,0,.2); -webkit-transition:1s; -moz-transition:1s; -ms-transition:1s; -o-transition:1s; transition:1s; } </style>
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 来凤县| 郯城县| 大埔县| 青龙| 武宣县| 张家界市| 大同市| 靖西县| 亚东县| 常州市| 泸溪县| 大足县| 石泉县| 眉山市| 库尔勒市| 米泉市| 博乐市| 洪泽县| 库尔勒市| 二手房| 石嘴山市| 炉霍县| 敦煌市| 营口市| 万年县| 重庆市| 双鸭山市| 合江县| 宁远县| 彭山县| 兴化市| 突泉县| 广灵县| 炎陵县| 永春县| 阿拉尔市| 长泰县| 烟台市| 资源县| 盘锦市| 玉树县|