@keyframes ${(props) => `bubblepop${props.idx}`} {
0% {
margin-bottom: 20px;
opacity: 100%;
visibility: visible;
}
20% {
}
100% {
margin-bottom: calc(90vh);
opacity: 20%;
${(props: styleProps) => {
return `margin-left: calc(${props.rand}vw)`;
}}
}
}
keyframe 쓸 때 이름이 동일하면, 하나가 바뀔 때, 다른 하나도 바뀌게 됨. 따라서 이름 다르게 해줘야함.