标签搜索
侧边栏壁纸
博主昵称
2c

  • 累计撰写 19 篇文章
  • 累计收到 12 条评论

css渐变

2c
2c
2022-04-28 / 2 评论 / 20 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2022年05月23日,已超过932天没有更新,若内容或图片失效,请留言反馈。

在这里插入图片描述

<!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>
</head>

<body>

</body>

</html>
<style>
    body {
        width: 100%;
        height: 100vh;
        /* background: linear-gradient(#0088dd,  #e493d0, #e63123); */
        background-image:
                radial-gradient(closest-side,
                    rgba(235, 105, 78, 1),
                    rgba(235, 105, 78, 0)),
                radial-gradient(closest-side,
                    rgba(243, 11, 164, 1),
                    rgba(243, 11, 164, 0)),
                radial-gradient(closest-side,
                    rgba(254, 234, 131, 1),
                    rgba(254, 234, 131, 0)),
                radial-gradient(closest-side,
                    rgba(170, 142, 254, 1),
                    rgba(170, 142, 254, 0)),
                radial-gradient(closest-side,
                    rgba(248, 192, 147, 1),
                    rgba(248, 192, 147, 0));
        animation: identifier 10s infinite;
    }
    body::after {
            content: '';
            display: block;
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
    @keyframes identifier {
        0% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -80vmax -80vmax,
                60vmax -30vmax,
                10vmax 10vmax,
                -30vmax -10vmax,
                50vmax 50vmax;
        }

        10% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -70vmax -70vmax,
                50vmax -20vmax,
                10vmax 10vmax,
                -10vmax -10vmax,
                40vmax 20vmax;
        }

        20% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -20vmax -50vmax,
                60vmax -20vmax,
                10vmax 10vmax,
                -30vmax -10vmax,
                50vmax 60vmax;
        }

        30% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -80vmax -80vmax,
                60vmax -30vmax,
                10vmax 10vmax,
                -40vmax -10vmax,
                20vmax 10vmax;
        }

        50% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -80vmax -80vmax,
                50vmax -10vmax,
                10vmax 10vmax,
                -30vmax -10vmax,
                50vmax 50vmax;
        }
        60% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -10vmax -20vmax,
                10vmax -10vmax,
                10vmax 10vmax,
                -30vmax -10vmax,
                50vmax 50vmax;
        }
        70% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -10vmax -20vmax,
                70vmax -50vmax,
                50vmax 40vmax,
                -30vmax -10vmax,
                20vmax 10vmax;
        }

        100% {
            background-size: 130vmax 140vmax, 130vmax 140vmax;
            background-position:
                -80vmax -80vmax,
                60vmax -30vmax,
                10vmax 10vmax,
                -30vmax -10vmax,
                50vmax 50vmax;
    }
    }
</style>
0

评论 (2)

取消
  1. 头像
    2c 作者
    Windows 10 · Google Chrome

    真不戳

    回复
  2. 头像
    2c 作者
    Windows 10 · Google Chrome

    哈哈哈

    回复