实用的CSS鼠标滑过按钮特效(10种代码篇)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
}
/*效果三*/
.button3{
-webkit-transition: all 0.5s ;
transition: all 0.5s ;
overflow:hidden;
position: relative;
}
.button3:hover{
background-color: rgba(255,255,255,0.2);
height: 100%;
position: absolute;
left: -50px;
top: 0;
opacity:0;
-webkit-transition: all 0.5s ;
transition: all 0.5s ;
}
.button2:hover::after{
left:0;
opacity:1;
}
.button2>span{
-webkit-transition: all 0.3s ;
transition: all 0.3s ;
}
.button2:hover>span{
opacity:0;
}
.button2::after{
content:attr(data-text);
width: 100%;
transition: all 0.5s ;
}
.button5:hover::after{
opacity:1;
-webkit-transform: scale(1,1);
transform: scale(1,1);
}
/*效果六*/
.button6{
border:none;
position: relative;
height: 100%;
position: absolute;
left: 0;
top: 0;
opacity:0;
-webkit-transform: translate(-9%, -50%) rotate(-9deg);
transform: translate(-9%, -50%) rotate(-9deg);
opacity:0;
position: absolute;
left: 0;
top:0;
background-color: rgba(255,255,255,0.5);
-webkit-transition: all 0.5s ;
transition: all 0.5s ;
}
.button4:hover::after{
content: '';
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
border: 1px solid rgba(255,255,255,0.5);
-webkit-transition: all 0.5s ;
transition: all 0.5s ;
}
.button3>span{
-webkit-transition: all 0.3s ;
transition: all 0.3s ;
}
.button3:hover>span{
opacity:0;
}
.button3::after{
content:attr(data-text);
width: 100%;
}
.button5:hover::before{
opacity:0;
-webkit-transform: scale(1.2,1.2);
transform: scale(1.2,1.2);
}
.button5::after{
content:'';
width:100%;
height:100%;
position: absolute;
-webkit-transition: all 0.3s ;
transition: all 0.3s ;
}
.button3:hover::after{
-webkit-transform: translate(0, 0) rotate(0deg);
transform: translate(0, 0) rotate(0deg);
实用的CSS鼠标滑过按钮特效(10种代码篇)
/*效果一*/
.button1{
-webkit-transition: all 0.5s ;
transition: all 0.5s ;
}
.button1:hover{
background-color: rgba(255,255,255,0.2);
border-radius:20px;
opacity:1;
}
/*效果四*/
.buttቤተ መጻሕፍቲ ባይዱn4{
position: relative;
overflow:hidden;
}
.button4 span{
z-index:2;
}
.button4::after{
content:"";
width: 100%;
height: 100%;
z-index:1;
opacity:1;
-webkit-transform: skewX(-180deg) scale(0.5,1);
transform: skewX(-180deg) scale(0.5,1);
}
/*效果五*/
.button5{
border:none;
position: relative;
}
.button5::before{
}
.button6::before{
content: '';
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(255,255,255,0.5);
-webkit-transition: all 0.5s ;
left: 0;
top: 0;
opacity:0;
background-color: rgba(255,255,255,0.5);
-webkit-transform: scale(0.5,0.5);
transform: scale(0.5,0.5);
-webkit-transition: all 0.5s ;
}
/*效果二*/
.button2{
-webkit-transition: all 0.5s ;
transition: all 0.5s ;
overflow:hidden;
position: relative;
}
.button2:hover{
background-color: rgba(255,255,255,0.2);
相关文档
最新文档