空间旋转-第二十四天

空间旋转

目标:使用rotate实现元素空间旋转效果

语法

transform:rotateZ(值);
transform:rotateX(值);
transform:rotate(值);

拓展

  • rotate3d(x,y,z,角度度数) 用来设置自定义旋转轴的位置及旋转的角度
  • x,y,z取值为0-1之间的数字
posted @ 2022-05-05 08:04  我爱打码  阅读(38)  评论(0)    收藏  举报