CSS Wheels animation effect

CSS Wheels animation

Wheels animation effect spins a HTML element like a starting tire of a car.

<style> .wheels { /* Uncomment as needed. */ /* width: 100px; */ /* height: 100px; */ /* background-color: deeppink; */ animation-name: wheels; animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: linear; } @keyframes wheels { 0% { transform: rotate(0deg); } 20% { transform: rotate(360deg); } 40% { transform: rotate(1800deg); } 80% { transform: rotate(36000deg); } 99.9% { transform: rotate(43200deg); } 100% { transform: rotate(0deg); } } </style>
    Hints:
  • If you cannot see your HTML element when using our code, you may need to set a width and or height, or background on your target HTML element using CSS. Just uncomment the CSS properties in our code as needed.
  • Remove the HTML style tag as needed.
  • Change values in the code such as animation-duration as needed.
Animation effects source code licenced under MIT Licence