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

前端水波纹往外展开4

程序员文章站 2023-02-21 12:07:29
来自: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 type="text/css"> .example { position: relative; margin: 150px auto; width: 50px; height: 50px; } .dot:before { content: ' '; position: absolute; z-index: 2; left: 0; top: 0; width: 10px; height: 10px; background-color: #ff4200; border-radius: 50%; } .dot:after { content: ' '; position: absolute; z-index: 1; width: 10px; height: 10px; background-color: #ff4200; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 0, 0, .3) inset; -webkit-animation: wavecircle 1s ease infinite normal; /*-webkit-animation-name: ripple; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease; -webkit-animation-delay: 0s; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: normal;*/ } @keyframes wavecircle { 0% { left: 5px; top: 5px; width: 0; height: 0; } 100% { left: -20px; top: -20px; opacity: 0; width: 50px; height: 50px; } } </style> </head> <body> <div class="example"> <div class="dot"></div> </div> </body> </html>