Skip to content
鼓励作者:欢迎打赏犒劳

09-毛玻璃效果

玻璃拟态在线生成工具 : https://hype4.academy/tools/glassmorphism-generator

好玻璃效果

html
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .glass {
            height: 399px;
            width: 199px;
            background: rgba( 255, 255, 255, 0.25 );
            box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
            backdrop-filter: blur( 5px );
            -webkit-backdrop-filter: blur( 5px );
            border-radius: 10px;
            border: 1px solid rgba( 255, 255, 255, 0.18 );
        }
        .container{
            height: 100vh;
            background: linear-gradient(45deg, #FC466B, #3F5EFB);
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="glass"></div>
</div>
</body>
</html>

如有转载或 CV 的请标注本站原文地址