成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

網(wǎng)站前端制作之鼠標(biāo)經(jīng)過按鈕效果二

2023-03-05    分類: 網(wǎng)站建設(shè)

接著上次關(guān)于頁面布局中,內(nèi)容模塊里的按鈕,鼠標(biāo)經(jīng)過的動畫效果的總結(jié)。鼠標(biāo)經(jīng)過的按鈕的時候會觸發(fā)各種效果,如漸變、放大、旋轉(zhuǎn)抑或是翻轉(zhuǎn)等效果。

開始的按鈕樣式,如下圖

鼠標(biāo)移入最終的效果
動態(tài)效果三:
Html

Css
.xbtn1 a{
position: relative;
display: block;
margin: 20px auto;
width: 100%;
height: 50px;
line-height: 50px;
max-width: 150px;
text-align: center;
text-transform: uppercase;
overflow: hidden;
border: 1px solid currentColor;
color: #FFFFFF;
}
.xbtn1 a:after{
content: '';
width: 0;
height: 0;
-webkit-transform: rotate(360deg);
-webkit-transition: 0.5s;
transition: 0.5s;
border-style: solid;
border-width: 0 0 0 0;
border-color: #FFFFFF transparent transparent transparent;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.xbtn1 a:hover:after {
border-width: 330px 330px 0 0;
}
.xbtn1 a:hover{
color: #1b3952;
}
動態(tài)效果四:
Html

Css
.xbtn2 a{
position: relative;
display: block;
margin: 20px auto;
width: 100%;
height: 50px;
line-height: 50px;
max-width: 150px;
text-align: center;
text-transform: uppercase;
overflow: hidden;
border: 1px solid currentColor;
}
.xbtn2 a:before{
content: '';
width: 0;
height: 0;
-webkit-transform: rotate(360deg);
-webkit-transition: 0.5s;
transition: 0.5s;
border-style: solid;
border-width: 0 0 0 0;
border-color: transparent transparent transparent #1b3952;
position: absolute;
bottom: 0;
left: 0;
z-index: -1;
}
.xbtn2 a:after{
content: '';
width: 0;
height: 0;
-webkit-transform: rotate(360deg);
-webkit-transition: 0.5s;
transition: 0.5s;
border-style: solid;
border-width: 0 0 0 0;
border-color: transparent transparent #1b3952 transparent;
position: absolute;
right: 0;
bottom: 0;
z-index: -1;
}
.xbtn2 a:hover {
color: #FFFFFF;
}
.xbtn2 a:hover:before {
border-width: 150px 0 0 150px;
}
.xbtn2 a:hover:after {
border-width: 0 0 150px 150px;
}

接下來動態(tài)效果五,這種動態(tài)效果是鼠標(biāo)移入,出現(xiàn)背景和水波紋的效果,如下圖是最開始的樣式,關(guān)于分享的圖標(biāo)是用切了顏色不一樣的兩張圖標(biāo),一張是白色,一張是黑色,黑色圖標(biāo)是輸入移入之后的效果,圖標(biāo)的背景變白色,周圍出現(xiàn)的波紋,主要用偽類實現(xiàn)的。
前端效果4
下面是鼠標(biāo)移入的效果
Html



























前端效果5

前端效果6

前端效果7

下面關(guān)于樣式有點多,主要的樣式是關(guān)于偽類做的波紋

當(dāng)前文章:網(wǎng)站前端制作之鼠標(biāo)經(jīng)過按鈕效果二
轉(zhuǎn)載注明:http://jinyejixie.com/news/241783.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計、網(wǎng)站營銷、網(wǎng)站排名、網(wǎng)站維護(hù)、定制開發(fā)、網(wǎng)站設(shè)計公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
社会| 南和县| 望谟县| 莒南县| 临猗县| 张家口市| 温宿县| 乌鲁木齐市| 樟树市| 昌都县| 汕尾市| 开封县| 镇沅| 宁强县| 类乌齐县| 万山特区| 洛宁县| 都兰县| 桦川县| 海口市| 闻喜县| 昌宁县| 渭源县| 仙桃市| 思茅市| 吴桥县| 邯郸县| 天台县| 美姑县| 天柱县| 彭阳县| 普格县| 丰都县| 长宁县| 云南省| 长武县| 华宁县| 赤壁市| 深泽县| 和平区| 昆明市|