如题,我要在页面上让一个p通过rotate() 属性顺时针旋转并且还要通栏translateX()这个属性像前移动,但是这样写只能执行一个!
无标题文档
这样写p只能执行一个动画效果,如何实现2个动画效果同事执行了呢? 就是让该p滚动并且向前移动?
可以写两个动画效果同时引入,animation:donghua 1s .8s both,donghua1 1s .6s forwards;
同时进行要写在一个transform里面,例如一楼那样
transform: translateX(300px) rotate(360deg);
transform: translateX(300px) rotate(360deg);