Advertisement
geten

img spin

Dec 7th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.53 KB | None | 0 0
  1. <style>
  2.     .image {
  3.         width: 200px /* not needed change to your liking */;
  4.         border-radius: 50% /* make the img a circle */;
  5.         animation-name: spin;
  6.         animation-duration: 4s /* how long you want the spinning to be */;
  7.         animation-iteration-count: infinite;
  8.         animation-timing-function: linear;
  9.     }
  10.     @keyframes spin {
  11.         from { transform:rotate(0deg); }
  12.         to {  transform:rotate(360deg); }
  13.     }
  14. </style>
  15.  
  16. <img src=https://file.garden/ZhR7DLcFMh_Z3OTH/IMG_1597.jpeg class=image>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement