在 CSS 中进行对 Angular 线旋转非常容易。
-webkit-transform: rotate3d(1,1,0,180deg)
http://codepen.io/moorthyrweb/pen/jEayJL
但是,使用 GSAP 我怎样才能达到同样的效果呢?
最佳答案
我从 GSAP 论坛上得到了解决方案,其中包括游戏中的两个元素。
TweenMax.set(".gsap",{rotation:45});
TweenMax.set(".container2",{rotation:-45});
TweenMax.to(".container2",1.5,{rotationY:180,repeat:-1});
http://codepen.io/MAW/pen/bNYWbx
仍然很想知道最好的可能性
关于css - 如何使用 GSAP 在对 Angular 轴上旋转正方形?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28364507/