CSS to achieve gradient leaves effect

Let's update a wave of previous code:
I can't remember I wrote these before, hahaha, record it.
The effect is like this
Insert picture description here

<!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>Document</title>
    <style>
        .leaf{
            width: 100px;
            height: 100px;
            border:1px solid green;
            margin:250px;
            border-radius: 0 100px;
            background-image: linear-gradient(135deg,green,yellow)
            
        }
    </style>
</head>
<body>
    <div class="leaf"></div>
    <!-- <div class="leaf"></div> -->

</body>
</html>
Published 91 original articles · Like 82 · Visits 10,000+

Guess you like

Origin blog.csdn.net/qq_42893625/article/details/105025778