当前位置:Gxlcms >
html代码 >
关于css样式box-shadow的一些好玩的变换样式,内置gif动态效果图_html/css_WEB-ITnose
关于css样式box-shadow的一些好玩的变换样式,内置gif动态效果图_html/css_WEB-ITnose
时间:2021-07-01 10:21:17
帮助过:96人阅读
#a{
height: 110px;
width: 110px;
margin: 50px;
background-color: #FF0000;
transition-duration: 1s;
}
#a:hover{
height: 30px;
width: 30px;
margin:50px;
box-shadow: 40px 40px 0px 0px #FF0000,0px 40px 0px 0px #FF0000,40px 0px 0px 0px #FF0000,
80px 0px 0px 0px #FF0000,0px 80px 0px 0px #FF0000,40px 80px 0px 0px #FF0000,
80px 40px 0px 0px #FF0000,80px 80px 0px 0px #FF0000
}
#s{
height: 10px;
width: 50px;
margin: 100px 50px;
background-color: #00FF77;
transition-duration: 1s;
}
#s:hover{
box-shadow: 0px 20px 0px 0px #00FF77,0px -20px 0px 0px #00FF77;
}
#h{
height: 100px;
width: 100px;
margin: 10px 50px;
background-color: #000000;
border: 10px solid #FF0000;
transition-duration: 1s;
}
#h:hover{
height: 100px;
width: 100px;
margin: 10px 50px;
background-color: #FF0000;
border: 10px solid #00FFFF;
border-radius: 70px;
}