欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

前端水波纹往外展开1

程序员文章站 2022-05-25 19:37:22
来自:https://blog.csdn.net/qq_38658877/article/details/78092649 侵删 Document ......
来自:https://blog.csdn.net/qq_38658877/article/details/78092649 侵删
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>document</title> <style> html { font-size: 20px; } body { background: #444; } .animate .w2 { -webkit-animation-delay: 1s; } .animate .w3 { -webkit-animation-delay: 2s; } .animate .w4 { -webkit-animation-delay: 3s; } .wave { width: 22.7rem; height: 22.7rem; position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; } .wave * { border: 1px solid #fff; position: absolute; border-radius: 50%; -webkit-animation: opac 4s infinite; } @-webkit-keyframes opac { from { opacity: 1; width: 0; height: 0; top: 50%; left: 50%; } to { opacity: 0; width: 100%; height: 100%; top: 0; left: 0; } } </style> </head> <body> <div class="animate wave"> <div class="w1"></div> <div class="w2"></div> <div class="w3"></div> <div class="w4"></div> </div> </body> </html>