css实现正方形扩散收缩动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现正方形扩散收缩动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> /** * get random number. * @param {number} min - min number. * @param {number} max - max number. */ /** * variable */ /** * common */ html, body { width: 100%; height: 100%; } body { position: relative; background: #092745; overflow: hidden; font-size: 0; -webkit-perspective: 300px; perspective: 300px; } div.criterion { position: absolute; top: 50%; left: 50%; width: 0; height: 0; } div.container0 { position: absolute; width: 50px; height: 50px; left: -25px; top: 125px; -webkit-animation: rotate-anim0 2s ease-in-out infinite alternate; animation: rotate-anim0 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container1 { position: absolute; width: 50px; height: 50px; left: 50px; top: 104.90381060000001px; -webkit-animation: rotate-anim1 2s ease-in-out infinite alternate; animation: rotate-anim1 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container2 { position: absolute; width: 50px; height: 50px; left: 104.90381060000001px; top: 50px; -webkit-animation: rotate-anim2 2s ease-in-out infinite alternate; animation: rotate-anim2 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container3 { position: absolute; width: 50px; height: 50px; left: 125px; top: -25px; -webkit-animation: rotate-anim3 2s ease-in-out infinite alternate; animation: rotate-anim3 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container4 { position: absolute; width: 50px; height: 50px; left: 104.90381060000001px; top: -100px; -webkit-animation: rotate-anim4 2s ease-in-out infinite alternate; animation: rotate-anim4 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container5 { position: absolute; width: 50px; height: 50px; left: 50px; top: -154.9038106px; -webkit-animation: rotate-anim5 2s ease-in-out infinite alternate; animation: rotate-anim5 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container6 { position: absolute; width: 50px; height: 50px; left: -25px; top: -175px; -webkit-animation: rotate-anim6 2s ease-in-out infinite alternate; animation: rotate-anim6 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container7 { position: absolute; width: 50px; height: 50px; left: -100px; top: -154.9038106px; -webkit-animation: rotate-anim7 2s ease-in-out infinite alternate; animation: rotate-anim7 2s ease-in-out infinite alternate; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } div.container8 { position: absolute; width: 50px; height: 50px; left: -154.9038106px; top: -100px; -webkit-animation: ro.........完整代码请登录后点击上方下载按钮下载查看
网友评论0