标签:隐藏 top flat ble sla enter jpg style 移动
<div> <img src="lufei.jpg"> </div> @-webkit-keyframes rotate{ 100%{transform:rotate(60deg);} } img{ -webkit-animation-name:rotate; -webkit-animation-durction:2s; }
<div> <img src="lufei.jpg"> </div> div{ perspevtive:500px; } @-webkit-keyframes rotate{ 100%{transform:rotate(60deg);} } img{ -webkit-animation-name:rotate; -webkit-animation-durction:2s; }
<div> <img src="lufei.jpg"> </div> div{ perspevtive:500px; perspective-origin:right top; } @-webkit-keyframes rotate{ 100%{transform:rotate(60deg);} } img{ -webkit-animation-name:rotate; -webkit-animation-durction:2s; }
transform-origin;x y z; 旋转的基准点
<div> <img src="lufei.jpg"> </div> div{ perspevtive:500px; } @-webkit-keyframes rotate{ 100%{transform:rotate(60deg);} } img{ -webkit-animation-name:rotate; -webkit-animation-durction:2s; transform-origin:center center 100px; }
<div> <img src="lufei.jpg"> </div> div{ perspevtive:500px; } @-webkit-keyframes rotate{ 100%{transform:rotate(60deg);} } img{ -webkit-animation-name:rotate; -webkit-animation-durction:2s; transform-origin:center center 100px; backface-visibility:hidden; 背面隐藏 }
标签:隐藏 top flat ble sla enter jpg style 移动
原文地址:https://www.cnblogs.com/xiaowie/p/9900167.html