<div class='heart-rate'>
  <div class='line'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
  <div class='point'></div>
</div>
<style>
  .heart-rate {
    width: 600px;
    height: 200px;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
  }
<p>.line {
width: 100%;
height: 2px;
background-color: #333;
position: absolute;
top: 50%;
transform: translateY(-50%);
}</p>
<p>.point {
width: 4px;
height: 4px;
border-radius: 50%;
background-color: #333;
position: absolute;
bottom: 0;
}</p>
<p>.point:nth-child(2) {
left: 10%;
animation: pulse 1s infinite;
}</p>
<p>.point:nth-child(3) {
left: 20%;
animation: pulse 1.2s infinite;
}</p>
<p>.point:nth-child(4) {
left: 30%;
animation: pulse 1.3s infinite;
}</p>
<p>.point:nth-child(5) {
left: 40%;
animation: pulse 1.4s infinite;
}</p>
<p>.point:nth-child(6) {
left: 50%;
animation: pulse 1.5s infinite;
}</p>
<p>.point:nth-child(7) {
left: 60%;
animation: pulse 1.4s infinite;
}</p>
<p>.point:nth-child(8) {
left: 70%;
animation: pulse 1.3s infinite;
}</p>
<p>.point:nth-child(9) {
left: 80%;
animation: pulse 1.2s infinite;
}</p>
<p>.point:nth-child(10) {
left: 90%;
animation: pulse 1s infinite;
}</p>
<p>@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
}
</style></p>
在线心电图模拟器 - 直观展示心脏跳动

原文地址: https://www.cveoy.top/t/topic/lU6m 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录