其他分享
首页 > 其他分享> > CSS: 旋转360 transition

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>

 

标签:img,transition,0.5,radius,360,tan,border,CSS
来源: https://www.cnblogs.com/dissipate/p/15860794.html