Home > Web Front-end > CSS Tutorial > css to implement rotating windmill

css to implement rotating windmill

不言
Release: 2018-04-26 16:56:26
Original
4116 people have browsed it

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

<img src="imgs/fengche.jpg" alt="小风车">
Copy after login

2. css

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

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!

Related labels:
css
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template