我的博客样式数据(非原创)

非原创,忘记"借鉴"哪位大佬的呢!

CSS代码

@keyframes spin3D {
    from {
        transform: rotate3d(0.5, 0.5, 0.5, 360deg);
    }
    to {
        transform: rotate3d(0deg);
    }
}
#loading {
    height: 100%;
    background-color: #1d2630;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 99999999;
}
.spinner-box {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}
.leo {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.blue-orbit {
    width: 165px;
    height: 165px;
    border: 1px solid #91daffa5;
    animation: spin3D 3s linear 0.2s infinite;
}
.green-orbit {
    width: 120px;
    height: 120px;
    border: 1px solid #91ffbfa5;
    animation: spin3D 2s linear 0s infinite;
}
.red-orbit {
    width: 90px;
    height: 90px;
    border: 1px solid #ffca91a5;
    animation: spin3D 1s linear 0s infinite;
}
.white-orbit {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    animation: spin3D 10s linear 0s infinite;
}
.w1 {
    transform: rotate3D(1, 1, 1, 90deg);
}
.w2 {
    transform: rotate3D(1, 2, 0.5, 90deg);
}
.w3 {
    transform: rotate3D(0.5, 1, 2, 90deg);
}

博客侧边栏公告

这里的url都要改一下

<script src="https://guangzan.gitee.io/awescnb/index.js"></script>
<script>
    $.awesCnb({
        // 代码高亮
        highLight: {
            type: '',
            dark: 'atomOneDark',
            light: 'atomOneLight',
        },
        // 代码行号
        lineNumbers: {
            enable: true,
        },
        // github图标
        github: {
            enable: true,
            color: '#ffb3cc',
            url: 'https://github.com/3214026782',
        },
       darkMode: {
           enable: true,
           autoDark: false,
           autoLight: false,
       },
        catalog: {
            enable: true,
            position: 'left',
        },
        theme: {
            name: 'gshang',
            avatar: 'http://blogimg-dust.oss-cn-beijing.aliyuncs.com/img/image-20210316120746693.png',
            color: '#66CCFF',
            headerBackground: 'http://blogimg-dust.oss-cn-beijing.aliyuncs.com/img/a.jpg'
        },
        imagebox: {
            enable: true,
        },
        darkMode: {
            enable: true,
            autoDark: false,
            autoLight: false
        },
        bodyBackground: {
            enable: false,
            value:
                'http://blogimg-dust.oss-cn-beijing.aliyuncs.com/img/88417243_p0.png',
            opacity: 0.85,
            repeat: false,
        },
        live2d: {
            enable: true,
            page: 'all',
            agent: 'pc',
            model: '小埋',
            width: 150,
            height: 200,
            position: 'right',
            gap: 'default',
        },
        tools: {
            enable: true,
            initialOpen: true,
        },
        indexListImg: {
            enable: false,
            imgs: [],
        },
        notice:{
            enable:true,
            text:['🔯双击导航条锁屏','🙃快去自定义通知吧'],
        },
        musicPlayer: {
            enable: true,
            autoplay: true,
            lrc: {
                enable: true,        // 启用歌词
                type: 1,             // 歌词类型  1 -> 字符串 3 -> url
                color: '#10ac84',    // 颜色
            },
            audio: [
                {
                    name: '四季',
                    artist: '洛天依',
                    url:
                        'http://music.163.com/song/media/outer/url?id=521161011.mp3',
                    cover:
                        'http://blogimg-dust.oss-cn-beijing.aliyuncs.com/img/image-20210316120608933.png',
                    lrc:
                        "",
                },
            ],
        },
    })
</script>

页首 HTML 代码

<div id="loading">
    <div class="spinner-box">
        <div class="blue-orbit leo"></div>
        <div class="green-orbit leo"></div>
        <div class="red-orbit leo"></div>
        <div class="white-orbit w1 leo"></div>
        <div class="white-orbit w2 leo"></div>
        <div class="white-orbit w3 leo"></div>
    </div>
</div>
posted @ 2021-07-27 23:04  洛依尘  阅读(174)  评论(0编辑  收藏  举报