div+css实现变形发光点汇聚loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现变形发光点汇聚loading加载动画效果代码
代码标签: div css 变形 发光 点 汇聚 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #222; } .loading { position: relative; display: flex; gap: 15px; } .loading span { position: relative; width: 5px; height: 20px; } .loading span::before { content: ''; position: absolute; inset: 0; animation: animate 8s linear infinite; animation-delay: calc(var(--i) * 0.1s); } @keyframes animate { 0% { background: #0f0; box-shadow: 0 0 5px #0f0, 0 0 15px #0f0, 0 0 30px #0f0, 0 0 50px #0f0; rotate: 0deg; } 20% { background: #0f0; box-shadow: 0 0 5px #0f0, 0 0 15px #0f0, 0 0 30px #0f0, 0 0 50px #0f0; rotate: 0deg; } 40% { background: #0f0; box-shadow: 0 0 5px #0f0, 0 0 15px #0f0, 0 0 30px #0f0, 0 0 50px #0f0; rotate: 90deg; transform-origin: bottom; filter: hue-rotate(0deg); } 80% { background: #0f0; box-shadow: 0 0 5px #0f0, 0 0 15px #0f0, 0 0 30px #0f0, 0 0 50px #0f0; rotate: 90deg; transform-origin: bottom; filter: hue-rotate(360deg); .........完整代码请登录后点击上方下载按钮下载查看
网友评论0