欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

关于css样式box-shadow的一些好玩的变换样式,内置gif动态效果图_html/css_WEB-ITnose

程序员文章站 2022-06-01 08:37:52
...
#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;
}