效果图:
完整代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>圆形波纹加载动画</title>
<style type="text/css">
body {
background: #ECF0F1;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.ripple {
position: relative;
width: 50px;
height: 50px;
}
.ripple div {
position: absolute;
border: 4px solid #3498db;
opacity: 1;
border-radius: 50%;
animation: ripple 1s cubic-bezier(0.21, 0.53, 0.56, 0.8) infinite;
}
.ripple div: