• css+html 实现 光晕 光圈


    <style>

    html {
    height: 100%;
    }
    body {
    height: 100%;
    background-color: #000;
    margin: 0;
    padding: 0;
    }
    .lensflare {
    position: relative;
    overflow: hidden;
    100%;
    min-height: 100%;
    overflow: hidden;
    }
    .source-spread {
    position: absolute;
    background: radial-gradient(rgba(255, 225, 255, .05) 10%, rgba(255, 225, 255, .05) 30%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    2000px;
    height: 2000px;
    margin-top: -1000px;
    margin-left: -1000px;
    top: 14%;
    left: 14%;
    z-index: 0;
    }
    .source {
    position: absolute;
    background: radial-gradient(#fff 0%, rgba(243, 206, 205, .4) 35%, rgba(88, 88, 88, .3) 60%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    800px;
    height: 800px;
    margin-top: -400px;
    margin-left: -400px;
    top: 14%;
    left: 14%;
    z-index: 2;
    }
    .source-beam {
    position: absolute;
    background: radial-gradient(rgba(255, 255, 255, .3) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    2200px;
    height: 28px;
    margin-top: -14px;
    margin-left: -1100px;
    top: 14%;
    left: 14%;
    z-index: 1;
    }
    .c1 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(189, 91, 87, 0) 40%, rgba(189, 91, 87, 0.5) 45%, rgba(189, 91, 87, 0) 50%, rgba(189, 91, 87, 0) 100%);
    border-radius: 50%;
    400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    top: 14%;
    left: 14%;
    z-index: 3;
    }
    .c2 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(162, 196, 134, 0) 20%, rgba(162, 196, 134, 0.3) 43%, rgba(67, 85, 52, 0) 50%, rgba(67, 85, 52, 0) 100%);
    border-radius: 50%;
    300px;
    height: 300px;
    margin-top: -150px;
    margin-left: -150px;
    top: 3%;
    left: 3%;
    z-index: 4;
    }
    .c3 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(31, 99, 255, .1) 1%, rgba(31, 99, 255, .13) 100%);
    border-radius: 50%;
    160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
    top: 46%;
    left: 46%;
    z-index: 5;
    }
    .c4 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(31, 99, 255, .1) 1%, rgba(31, 99, 255, .13) 100%);
    border-radius: 50%;
    50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    top: 44%;
    left: 44%;
    z-index: 6;
    }
    .c5 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(31, 99, 255, .1) 1%, rgba(31, 99, 255, .13) 100%);
    border-radius: 50%;
    88px;
    height: 88px;
    margin-top: -44px;
    margin-left: -44px;
    top: 47%;
    left: 47%;
    z-index: 7;
    }
    .c6 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 129, 57, .15) 1%, rgba(255, 129, 57, .2) 100%);
    border-radius: 50%;
    88px;
    height: 88px;
    margin-top: -44px;
    margin-left: -44px;
    top: 57%;
    left: 57%;
    z-index: 8;
    }
    .c7 {
    position: absolute;
    background: radial-gradient(rgba(255, 225, 255, .9) 10%, rgba(137, 255, 220, .4) 30%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    top: 62%;
    left: 62%;
    z-index: 9;
    }
    .c8 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 129, 57, .15) 10%, rgba(187, 129, 57, .20) 50%, rgba(255, 129, 57, .2) 60%, rgba(0, 0, 0, 0) 65%);
    border-radius: 50%;
    190px;
    height: 190px;
    margin-top: -95px;
    margin-left: -95px;
    top: 71%;
    left: 71%;
    z-index: 10;
    }
    .c9 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 1%, rgba(255, 129, 57, .2) 100%);
    border-radius: 50%;
    104px;
    height: 104px;
    margin-top: -52px;
    margin-left: -52px;
    top: 70%;
    left: 70%;
    z-index: 11;
    }
    .c10 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 1%, rgba(255, 129, 57, .2) 100%);
    border-radius: 50%;
    60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    top: 72%;
    left: 72%;
    z-index: 12;
    }
    .c11 {
    position: absolute;
    background: radial-gradient(rgba(255, 225, 255, .9) 10%, rgba(137, 255, 220, .4) 30%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    top: 75%;
    left: 75%;
    z-index: 13;
    }
    .c12 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(73, 168, 199, .15) 10%, rgba(100, 145, 42, .20) 30%, rgba(100, 145, 42, .2) 60%, rgba(0, 0, 0, 0) 65%);
    border-radius: 50%;
    80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    top: 81%;
    left: 81%;
    z-index: 14;
    }
    .c13 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .5) 4%, rgba(100, 145, 42, .2) 36%, rgba(163, 240, 63, .2) 38%, rgba(100, 145, 42, .1) 40%, rgba(189, 91, 87, 0) 43%);
    border-radius: 50%;
    240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
    top: 88%;
    left: 88%;
    z-index: 15;
    }
    .c14 {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(189, 91, 87, 0) 39%, rgba(94, 29, 191, 0.2) 41%, rgba(29, 71, 191, 0.2) 42%, rgba(191, 113, 29, 0.2) 43%, rgba(189, 91, 87, 0) 45%, rgba(189, 91, 87, 0) 100%);
    border-radius: 50%;
    600px;
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
    top: 99%;
    left: 99%;
    z-index: 16;
    }

    </style>
    <div class="lensflare">
    <div class="source-spread"></div>
    <div class="source"></div>
    <div class="source-beam"></div>
    <div class="c1"></div>
    <div class="c2"></div>
    <div class="c3"></div>
    <div class="c4"></div>
    <div class="c5"></div>
    <div class="c6"></div>
    <div class="c7"></div>
    <div class="c8"></div>
    <div class="c9"></div>
    <div class="c10"></div>
    <div class="c11"></div>
    <div class="c12"></div>
    <div class="c13"></div>
    <div class="c14"></div>
    </div>

  • 相关阅读:
    文件参数Python读取wav格式文件
    电子工程术语和定义列表,按字母顺序排列
    MAC地址加减1算法
    uboot通过kernel command line 动态分区 CONFIG_MTD_CMDLINE_PARTS
    c调用shell脚本
    busybox提示can't access tty.job control turned off
    cut命令如何截取以空格隔开的字段
    DS28E01100
    busybox 中的ntpd使用
    Debugfs
  • 原文地址:https://www.cnblogs.com/moli-/p/11189779.html
Copyright © 2020-2023  润新知