Skip to content

Commit 936f5fd

Browse files
committed
add SCSS styling to ThreeDotsLoader
1 parent c5c61bc commit 936f5fd

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

components/Snippets/ThreeDotsLoader.js

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,49 @@ const cssStyling = `
121121
}
122122
`;
123123

124-
export { stitchesStyling, cssStyling, Component };
124+
const scssStyling = `
125+
.exampleClass {
126+
position: relative;
127+
width: 14px;
128+
height: 14px;
129+
border-radius: 50%;
130+
background-color: white;
131+
color: white;
132+
animation: flashing 0.8s infinite linear alternate 0.4s;
133+
134+
&::before,
135+
&::after {
136+
content: '';
137+
display: inline-block;
138+
position: absolute;
139+
top: 0;
140+
width: 14px;
141+
height: 14px;
142+
border-radius: 50%;
143+
background-color: white;
144+
color: white;
145+
}
146+
147+
&::before {
148+
left: -21px;
149+
animation: flashing 0.8s infinite alternate;
150+
}
151+
152+
&::after {
153+
left: 21px;
154+
animation: flashing 0.8s infinite alternate 0.8s;
155+
}
156+
}
157+
158+
@keyframes flashing {
159+
0% {
160+
background-color: white;
161+
}
162+
50%,
163+
100% {
164+
background-color: rgba(255, 255, 255, 0.3);
165+
}
166+
}
167+
`;
168+
169+
export { stitchesStyling, cssStyling, scssStyling, Component };

0 commit comments

Comments
 (0)