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







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








技术分享

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。