纯css实现露珠水珠布局效果

代码语言:html

所属分类:布局界面

代码描述:纯css实现露珠水珠布局效果

代码标签: 露珠 水珠 布局 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <style>
        /* I don't even know why I added sass */
        html, body {
            margin: 0;
            height: 100%;
            overflow: hidden;
        }

        .paper {
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            position: absolute;
        }
        .paper::before {
            content: '';
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            position: absolute;
            filter: url(#paper);
        }
        .paper::after {
            content: '';
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            position: absolute;
            background-image: linear-gradient(190deg, rgba(201, 201, 201, 0.1), rgba(85, 85, 85, 0.4));
        }

        .dropplets {
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform: rotateZ(8deg);
        }

        .dropplet {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            position: absolute;
        }
        .dropplet:nth-child(1) {
            top: calc(50% - 130px);
            left: calc(50% + 110px);
        }
        .dropplet:nth-child(1)::after {
            content: '';
            top: -25px;
            left: -55px;
            position: absolute;
            width: 80px;
            height: 75px;
            border-radius: 50% 50% 50% 50% /.........完整代码请登录后点击上方下载按钮下载查看

网友评论0