* { margin: 0; padding: 0;}.container { position: relative; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #000;}.circle { display: flex; justify-content: center; align-items: center; position: absolute; width: 200px; height: 200px; border-radius: 50%; /* border: 1px solid red; */ /* 从下到上渐变,从蓝色开始渐变,到高度30%位置是紫色渐变开始,到高度60%是玫红色渐变开始,高度100%红色渐变*/ background-image: linear-gradient( 0deg, rgb(47, 102, 255), rgb(153, 64, 255) 30%, rgb(238, 55, 255) 60%, rgb(255, 0, 76) 100%); animation: rotate .4s linear infinite;}/* 模糊 */.circle::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; /* border: 1px solid red; */ /* 从下到上渐变,从蓝色开始渐变,到高度30%位置是紫色渐变开始,到高度60%是玫红色渐变开始,高度100%红色渐变*/ background-image: linear-gradient( 0deg, rgb(47, 102, 255), rgb(153, 64, 255) 30%, rgb(238, 55, 255) 60%, rgb(255, 0, 76) 100% ); /* 函数将高斯模糊应用于输入图像 */ filter: blur(35px);}/* 黑圈 */.circle::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #000;}span { position: absolute; color: #fff;}/* 添加动画 */@keyframes rotate { 0%{ transform: rotate(0deg); } 100%{ transform: rotate(360deg); }}
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="./yuan.css"> <title>Document</title></head><body> <div class="container"> <!-- <img src="./img/instruction/car1.png" width="100%" id="carOne" style="display: none;"> --> <div class="circle"></div> <span>流光球~</span> </div></body></html>