当前位置: 移动技术网 > IT编程>网页制作>CSS > 前端水波纹往外展开1

前端水波纹往外展开1

2019年03月05日  | 移动技术网IT编程  | 我要评论
来自: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>

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网