Home  >  Q&A  >  body text

javascript - Music player-picture rotation

Similar to NetEase Cloud Music and QQ Music, the idea of ​​rotating the middle image is to use js animate to control it, or to write css3 animation.

巴扎黑巴扎黑2673 days ago1343

reply all(5)I'll reply

  • 滿天的星座

    滿天的星座2017-06-26 10:56:45

    CSS3 ah

    reply
    0
  • 阿神

    阿神2017-06-26 10:56:45

    Regardless of compatibility, just use CSS 3’s transform: rotate();

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-26 10:56:45

    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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-06-26 10:56:45

    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!

    reply
    0
  • 某草草

    某草草2017-06-26 10:56:45

    css, -webkit-animation-play-state

    reply
    0
  • Cancelreply