У меня есть эта анимация, работающая с CSS, это простые точки, движущиеся вверх и вниз:
$dot-list: 1 2 3 4 5;
.dot-animation {
display: block;
span {
display: inline-block;
margin-top: 10px;
height: 20px;
width: 20px;
border-radius: 50%;
&:not(:first-child) { margin-left: 30px; }
}
@each $current-dot in $dot-list {
$i: index($dot-list, $current-dot);
$t: $i * -0.787;
span:nth-child(#{$i}) {
background: white;
border: 5px solid #48c0c0;
animation: move 1s ease-in-out (#{$t}s) infinite alternate;
}
}
}
@keyframes move {
from { transform: translateY(0px); }
to { transform: translateY(60px); }
}
https://codepen.io/rjchirinos/pen/jKyYBM
Я хочу объединить эти точки, используя линии, поэтому каждыйКогда точки перемещаются, линии должны вращаться, чтобы сохранить объединение.
Вот пример того, что я хочу сделать: https://neomam.com/interactive/13reasons/
Можете ли вы помочь мне выяснить, как?
Заранее спасибо!