2024-10-21 13:57:45 -06:00
|
|
|
import React from "react"
|
2024-10-13 22:47:47 -04:00
|
|
|
|
|
|
|
const LoadingDots: React.FC = () => {
|
|
|
|
return (
|
|
|
|
<span className="loading-dots">
|
|
|
|
<span className="dot">.</span>
|
|
|
|
<span className="dot">.</span>
|
|
|
|
<span className="dot">.</span>
|
|
|
|
<style jsx>{`
|
|
|
|
.loading-dots {
|
|
|
|
display: inline-block;
|
2024-10-21 13:57:45 -06:00
|
|
|
font-size: 24px;
|
2024-10-13 22:47:47 -04:00
|
|
|
}
|
|
|
|
.dot {
|
|
|
|
opacity: 0;
|
|
|
|
animation: showHideDot 1.5s ease-in-out infinite;
|
|
|
|
}
|
2024-10-21 13:57:45 -06:00
|
|
|
.dot:nth-child(1) {
|
|
|
|
animation-delay: 0s;
|
|
|
|
}
|
|
|
|
.dot:nth-child(2) {
|
|
|
|
animation-delay: 0.5s;
|
|
|
|
}
|
|
|
|
.dot:nth-child(3) {
|
|
|
|
animation-delay: 1s;
|
|
|
|
}
|
2024-10-13 22:47:47 -04:00
|
|
|
@keyframes showHideDot {
|
2024-10-21 13:57:45 -06:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2024-10-13 22:47:47 -04:00
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
</span>
|
2024-10-21 13:57:45 -06:00
|
|
|
)
|
|
|
|
}
|
2024-10-13 22:47:47 -04:00
|
|
|
|
2024-10-21 13:57:45 -06:00
|
|
|
export default LoadingDots
|