In the MVC or MVVM mode used in general projects, the view should be strictly made using HTML+CSS. The js code should only process the logic without interfering with the view
This animation is relatively simple and straightforward to use transform: rotate();! For something a little more complicated, use js or animate to execute it in several steps!
CSS3 ah
Regardless of compatibility, just use CSS 3’s transform: rotate();
In the MVC or MVVM mode used in general projects, the view should be strictly made using HTML+CSS. The js code should only process the logic without interfering with the view
This animation is relatively simple and straightforward to use
transform: rotate();
! For something a little more complicated, use js or animate to execute it in several steps!css,
-webkit-animation-play-state