anime实现圆形网格层级扩散动画效果代码
代码语言:html
所属分类:动画
代码描述:anime实现圆形网格层级扩散动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { margin: 0; padding: 0; background-color: #222; } .wrapper, .wrapper2, .wrapper3 { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; margin: 0; box-sizing: border-box; } .wrapper { z-index: 3 } .wrapper2 { z-index: 2 } .wrapper3 { z-index: 1 } .row { display: flex; justify-content: center; align-items: center; } .circ { flex: 0 0 20px; width: 20px; height: 20px; margin: 10px; border-radius: 500px; background: aqua; } .circ2 { flex: 0 0 20px; width: 20px; height: 20px; margin: 10px; border-radius: 500px; background: blue; } .circ3 { flex: 0 0 20px; width: 20px; height: 20px; margin: 10px; border-radius: 500px; background: #00ff95; } </style> </head> <body> <main class="wrapper"> <div class="row"> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> </div> <div class="row"> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> </div> <div class="row"> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> </div> <div class="row"> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> </div> <div class="row"> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> <div class="circ"></div> </div> </main> <main class="wrapper2"> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> <div class="row"> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> <div class="circ2"></div> </div> </main> <main class="wrapper3"> <div class="row"> <div class="circ3"></div> <div class="circ3"></div> <div class="circ3"></div> <div class="circ3"></div> <div class="circ3"></div> <div class="circ3"></div> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0