内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

網(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://www.rwnh.cn/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è)公司
崇信县| 西林县| 兴隆县| 富蕴县| 洛南县| 沐川县| 宜兰市| 乌恰县| 天峨县| 牙克石市| 哈尔滨市| 措勤县| 泰顺县| 祥云县| 镇安县| 宁南县| 舒城县| 宣城市| 铜川市| 四子王旗| 安义县| 通化市| 中阳县| 黔南| 金坛市| 托克逊县| 高密市| 宁城县| 德钦县| 平邑县| 富裕县| 金门县| 镇安县| 新宁县| 伊金霍洛旗| 柳河县| 德清县| 金山区| 商河县| 淅川县| 富蕴县|