Skip to content

Commit c5c61bc

Browse files
committed
add CSS styling to ThreeDotsLoader
1 parent f582899 commit c5c61bc

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

components/Snippets/ThreeDotsLoader.js

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,44 @@ const exampleWrapper = styled('div', {
8181
}
8282
});`;
8383

84-
export { stitchesStyling, Component };
84+
const cssStyling = `
85+
.exampleClass {
86+
position: relative;
87+
width: 14px;
88+
height: 14px;
89+
border-radius: 50%;
90+
background-color: white;
91+
color: white;
92+
animation: flashing 0.8s infinite linear alternate .4s;
93+
}
94+
95+
.exampleClass::after,
96+
.exampleClass::before {
97+
content: '';
98+
display: inline-block;
99+
position: absolute;
100+
top: 0;
101+
width: 14px;
102+
height: 14px;
103+
border-radius: 50%;
104+
background-color: white;
105+
color: white;
106+
}
107+
108+
.exampleClass::before {
109+
left: -21px;
110+
animation: flashing 0.8s infinite alternate;
111+
}
112+
113+
.exampleClass::after {
114+
left: 21px;
115+
animation: flashing 0.8s infinite alternate .8s;
116+
}
117+
118+
@keyframes flashing {
119+
0% { background-color: white }
120+
50%, 100% { background-color: rgba(255, 255, 255, 0.3) }
121+
}
122+
`;
123+
124+
export { stitchesStyling, cssStyling, Component };

0 commit comments

Comments
 (0)