纯CSS实现风车转动

源码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CSS实现风车转动</title>
    // --------------------------------- CSS ----------------------------------------
    <style>
        body{
   
            margin: 0;
            background: #a5cad6;
            position: relative;
        }
        
        .windmill{
   
            margin: 500px auto;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            height: 120px;
            width: 100px;
            /* border: 1px solid #fff; */
        }
        .pillar{
   
            width: 4px;
            height: 0;
            border-color:transparent transparent #fff;
            border-style: solid;
            border-width: 20px 6px 100px;
            position: relative;
            left: 50%;
            margin:0 -53%;

        }
        .leaves{
   
            width:

你可能感兴趣的:(css)