blob: 3ec81b781fe8576086e291eb031600d762315e06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import styled, { keyframes } from "styled-components";
const spanKeyframes = keyframes`
0% {
filter: brightness(1);
}
50% {
filter: brightness(0.5);
}
100% {
filter: brightness(1);
}
`;
const LoadingBarContainer = styled.div`
span {
background-color: ${({ theme }) => theme.accent};
display: inline-block;
height: 1rem;
width: 1rem;
margin: 0.5rem;
animation: ${spanKeyframes} 1s infinite;
}
span:nth-child(1) {
animation-delay: 0s;
}
span:nth-child(2) {
animation-delay: 0.25s;
}
span:nth-child(3) {
animation-delay: 0.5s;
}
`;
const LoadingBar = () => {
return (
<LoadingBarContainer>
<span></span>
<span></span>
<span></span>
</LoadingBarContainer>
);
};
export default LoadingBar;
|