mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
LoadingDots Working (:
This commit is contained in:
parent
633fd0c98d
commit
a314148ad1
@ -1,23 +1,24 @@
|
|||||||
.root {
|
.root {
|
||||||
@apply inline-flex text-center items-center leading-7;
|
@apply inline-flex text-center items-center leading-7;
|
||||||
|
}
|
||||||
|
|
||||||
& span {
|
.root .dot {
|
||||||
@apply bg-accent-6 rounded-full h-2 w-2;
|
@apply rounded-full h-2 w-2;
|
||||||
|
background-color: currentColor;
|
||||||
animation-name: blink;
|
animation-name: blink;
|
||||||
animation-duration: 1.4s;
|
animation-duration: 1.4s;
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-fill-mode: both;
|
animation-fill-mode: both;
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
&:nth-of-type(2) {
|
.root .dot:nth-of-type(2) {
|
||||||
animation-delay: 0.2s;
|
animation-delay: 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:nth-of-type(3) {
|
.root .dot::nth-of-type(3) {
|
||||||
animation-delay: 0.4s;
|
animation-delay: 0.4s;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
0% {
|
0% {
|
||||||
|
@ -3,9 +3,9 @@ import s from './LoadingDots.module.css'
|
|||||||
const LoadingDots: React.FC = () => {
|
const LoadingDots: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<span className={s.root}>
|
<span className={s.root}>
|
||||||
<span />
|
<span className={s.dot} key={`dot_1`} />
|
||||||
<span />
|
<span className={s.dot} key={`dot_2`} />
|
||||||
<span />
|
<span className={s.dot} key={`dot_3`} />
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user