效果图:
完整代码:
<!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;
}
.blinking-dots {
display: flex;
justify-content: space-between;
align-items: center;
width: 60px;
}
.blinking-dots div {
width: 12px;
height: 12px;
background-color: #3498db;
border-radius: 50%;
animation: blink 1s infinite;
}