uni-app transform 旋转效果 rotate()

  • Post author:
  • Post category:其他



rotate:设置旋转的角度

rotateX 沿着x轴进行旋转 rotateY 沿着y轴进行旋转

.mcStart {
			// height: 70rpx;
			// width: 70rpx;
			display: flex;
			flex-direction: row;
			// position: absolute;
			z-index: 99;
			top: 1%;
			left: 1%;
			/*旋转动画*/
			animation: box-ani 10s infinite linear;
		}
	@keyframes box-ani {
		from {
			transform: rotate(0)
		}
	
		to {
			transform: rotate(360deg)
		}
	}



版权声明:本文为Xinacridine原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。