Skip to content

Commit f582899

Browse files
committed
add stitches styling to ThreeDotsLoader
1 parent 7268ae1 commit f582899

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

components/Snippets/ThreeDotsLoader.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,43 @@ const Wrapper = styled('div', {
4242
}
4343
});
4444

45-
export { Component };
45+
const stitchesStyling = `
46+
const flashing = keyframes({
47+
'0%': { backgroundColor: '$white' },
48+
'50%, 100%': {
49+
backgroundColor: 'rgba(255, 255, 255, 0.3)'
50+
}
51+
});
52+
53+
const exampleWrapper = styled('div', {
54+
position: 'relative',
55+
width: '14px',
56+
height: '14px',
57+
borderRadius: '50%',
58+
backgroundColor: 'white',
59+
color: 'white',
60+
animation: 'flashing 0.8s infinite linear alternate .4s',
61+
62+
'&::after, &::before': {
63+
content: '',
64+
display: 'inline-block',
65+
position: 'absolute',
66+
top: 0,
67+
width: '14px',
68+
height: '14px',
69+
borderRadius: '50%',
70+
backgroundColor: 'white',
71+
color: 'white'
72+
},
73+
'&::before': {
74+
left: '-21px',
75+
animation: 'flashing 0.8s infinite alternate'
76+
},
77+
78+
'&::after': {
79+
left: '21px',
80+
animation: 'flashing 0.8s infinite alternate .8s'
81+
}
82+
});`;
83+
84+
export { stitchesStyling, Component };

0 commit comments

Comments
 (0)