抖音炫酷加载动画

链接地址:CSS加载动画

Html文件:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Loading</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="loading"></div>
    <div class="loading-title">加载中</div>
</body>
</html>
CSS文件:
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
}

.loading {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg,
    transparent,transparent 40%,#e5f403);
    border-radius: 50%;
    animation: animate 2s linear infinite;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

.loading::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    bottom: 8px;
    right: 8px;
    background: #000000;
    border-radius: 50%;
    z-index: 100;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background: #000;
    background: linear-gradient(45deg,
    transparent,transparent 40%,#e5f403);
    border-radius: 50%;
    z-index: 1;
    filter: blur(30px);
}

.loading-title {
    position: absolute;
    font-size: 18px;
    animation: title-animation 2s linear infinite;
}

@keyframes title-animation {
    0% {
        color: #fff;
        filter: blur(1px) hue-rotate(0deg);
        text-shadow: 0 0 10px #e5f403,
        0 0 20px #e5f403,
        0 0 40px #e5f403;
    }

    100% {
        color: #fff;
        filter: blur(1px) hue-rotate(360deg);
        text-shadow: 0 0 10px #e5f403,
        0 0 20px #e5f403,
        0 0 40px #e5f403;
    }
    
}
效果如下:

  • 10
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值