Home  >  Article  >  Web Front-end  >  css to implement rotating windmill

css to implement rotating windmill

不言
不言Original
2018-04-26 16:56:263969browse

This article mainly introduces the CSS implementation of rotating windmills, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

1. Place windmill pictures

小风车

2. css

@keyframes rotating {       from{           transform: rotate(0);       }
       to{           transform: rotate(360deg);       }
 } img{       animation: rotating 1.2s linear infinite }

linear: uniform speed
infinite means infinite loop animation


Effect (record jif, original effect is smooth)
css to implement rotating windmill

Related recommendations:

jQuery CSS realizes label column switching (with code)

##css realizes multi-level folding menu effect

The above is the detailed content of css to implement rotating windmill. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn