css水珠效果

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            width: 100vw;
            height: 100vh;
        }

        .water {
            width: 100px;
            height: 100px;
            /* border: 1px solid black; */
            border-radius: 61% 39% 57% 43% / 46% 67% 33% 54%;
            box-shadow: inset 10px 20px 30px rgba(0, 0, 0, 0.5),
                10px 10px 20px rgba(0, 0, 0, 0.3),
                15px 15px 30px rgba(0, 0, 0, 0.05);
        }
    </style>
</head>

<body>
    <div class="water"></div>
</body>

</html>

 

Document

 

posted on 2024-03-28 10:05  这就是神迹  阅读(10)  评论(0编辑  收藏  举报

导航