div+css实现dna螺旋loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现dna螺旋loading加载动画效果代码
代码标签: div css dna 螺旋 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } html { display: flex; justify-content: center; align-items: center; min-width: 100vw; min-height: 100vh; } body { display: flex; align-items: center; justify-content: center; width: 90vw; height: 90vh; background: grey; } .items { display: flex; flex-direction: column; align-items: center; perspective: 500px; animation: rotate infinite linear 20s; } .item { position: relative; display: inline-block; overflow: visible; width: 50px; height: 5px; margin: 2px 0; display: flex; justify-content: space-between; animation: rotate2 infinite linear 2s, hue linear infinite 2s; background: linear-gradient(0deg, transparent 0%, transparent 40%, #2a6ae9 50%, transparent 60%, transparent 100%); } .item:before, .item:after { content: ""; position: relative; border-radius: 50%; width: 5px; height: 5px; display: block; background: white; box-shadow: 0px 0px 10px 2px #2a6ae9, 0px 0px 0px 1px black; } .item:before { animation-delay: 1s; } .item:nth-child(n+1) { animation-delay: -4.87s; } .item:nth-child(n+2) { animation-delay: -4.74s; } .item:nth-child(n+3) { animation-delay: -4.61s; } .item:nth-child(n+4) { animation-delay: -4.48s; } .item:nth-child(n+5) { animation-delay: -4.35s; } .item:nth-child(n+6) { animation-delay: -4.22s; } .item:nth-child(n+7) { animation-delay: -4.09s; } .item:nth-child(n+8) { animation-delay: -3.96s; } .item:nth-child(n+9) { animation-delay: -3.83s; } .item:nth-child(n+10) { animation-delay: -3.7s; } .item:nth-child(n+11) { animation-delay: -3.57s; } .item:nth-child(n+12) { animation-delay: -3.44s; } .item:nth-child(n+13) { animation-delay: -3.31s; } .item:nth-child(n+14) { animation-delay: -3.18s; } .item:nth-child(n+15) { animation-delay: -3.05s; } .item:nth-child(n+16) { animation-delay: -2.92s; } .item:nth-child(n+17) { animation-delay: -2.79s; } .item:nth-child(n+18) { animation-delay: -2.66s; } .item:nth-child(n+19) { animation-delay: -2.53s; } .item:nth-child(n+20) { animation-delay: -2.4s; } .item:nth-child(n+21) { animation-delay: -2.27s; } .item:nth-child(n+22) { animation-delay: -2.14s; } .item:nth-child(n+23) { animation-delay: -2.01s; } .item:nth-child(n+24) { animation-delay: -1.88s; } .item:nth-child(n+25) { animation-delay: -1.75s; } .item:nth-child(n+26) { animation-delay: -1.62s; } .item:nth-child(n+27) { animation-delay: -1.49s; } .item:nth-child(n+28) { animation-delay: -1.36s; } .item:nth-child(n+29) { animation-delay: -1.23s; } .item:nth-child(n+30) { animation-delay: -1.1s; } .item:nth-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0