div+css实现太阳发射光芒漩涡式loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现太阳发射光芒漩涡式loading加载动画效果代码
代码标签: div css 太阳 发射 光芒 漩涡式 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <style> * { border: 0; box-sizing: border-box; margin: 0; padding: 0; } :root { --hue: 18; --bg: hsl(var(--hue),90%,90%); --fg: hsl(var(--hue),90%,10%); --primary: hsl(var(--hue),90%,50%); --trans-dur: 0.3s; font-size: calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320)); } body { background-color: var(--bg); color: var(--fg); display: flex; font: 1em/1.5 sans-serif; height: 100vh; transition: background-color var(--trans-dur), color var(--trans-dur); } .pl { margin: auto; width: 8em; height: 8em; } .pl__line, .pl__line-g, .pl__lines { animation: lineRotate 2s ease-in-out infinite; } .pl__line { animation-name: lineMove; animation-timing-function: ease-in; } .pl__line-g { animation-name: lineFade; animation-timing-function: linear; } .pl__line-g:nth-child(2), .pl__line-g:nth-child(2) .pl__line { animation-delay: 0.1666666667s; } .pl__line-g:nth-child(3), .pl__line-g:nth-child(3) .pl__line { animation-delay: 0.25s; } .pl__line-g:nth-child(4), .pl__line-g:nth-child(4) .pl__line { animation-delay: 0.3333333333s; } .pl__line-g:nth-child(5), .pl__line-g:nth-child(5) .pl__line { animation-delay: 0.4.........完整代码请登录后点击上方下载按钮下载查看
网友评论0