CSS: 旋转360 transition

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    img {
      width: 200px;
      border: 3px solid tan;
      border-radius: 50%;
      transition: all 1s ease-in-out 0.5s;
    }

    img:hover {
      transform: rotate(360deg);
    }
  </style>
</head>

<body>
  <div><img src="/images/pic.jpg" alt=""></div>
</body>

</html>

 

上一篇:CSS – Transition


下一篇:H5与SCC3的新特性