好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css3之3D魔方动画(小白版)

.box{
    animation: cube_animation ease-in-out 6s infinite forwards;  
    transform-style: preserve-3d;
    transform-origin: 90px 90px 90px;
}
.bside{
    width: 180px;
    height: 180px;
    position: absolute;
    transform: translatex(-90px) translatez(90px) rotatey(90deg);
}
.cside{
    width: 180px;
    height: 180px;
    position: absolute;
    transform: translatez(90px) translatey(90px) rotatex(90deg);
}
.eside{
    width: 180px;
    height: 180px;
    position: absolute;
    transform: translatez(90px) translatey(-90px) rotatex(90deg);
}
 

查看更多关于css3之3D魔方动画(小白版)的详细内容...

  阅读:40次

上一篇: css之盒模型

下一篇:px和em之间的转换