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

来源:互联网 发布:sap软件介绍 编辑:程序博客网 时间:2024/05/21 06:13







#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;
}








效果图

1 0