File tree 1 file changed +30
-41
lines changed
1 file changed +30
-41
lines changed Original file line number Diff line number Diff line change @@ -77,21 +77,21 @@ const exampleWrapper = styled('div', {
77
77
78
78
const cssStyling = `
79
79
.exampleClass span {
80
- width: 14px;
81
- height: 14px;
82
- borderRadius : 50%;
83
- backgroundColor : white;
84
- animation: flashing 1.4s infinite linear;
85
- margin: 0 4px;
86
- display: inline-block;
80
+ width: 14px;
81
+ height: 14px;
82
+ border-radius : 50%;
83
+ background-color : white;
84
+ animation: flashing 1.4s infinite linear;
85
+ margin: 0 4px;
86
+ display: inline-block;
87
87
}
88
88
89
89
.exampleClass span:nth-child(2) {
90
- animation-delay: .2s;
90
+ animation-delay: 0 .2s;
91
91
}
92
92
93
93
.exampleClass span:nth-child(3) {
94
- animation-delay: .4s;
94
+ animation-delay: 0 .4s;
95
95
}
96
96
97
97
@keyframes flashing {
@@ -100,7 +100,7 @@ const cssStyling = `
100
100
}
101
101
20% {
102
102
opacity: 1;
103
- },
103
+ }
104
104
100% {
105
105
opacity: 0.2;
106
106
}
@@ -109,45 +109,34 @@ const cssStyling = `
109
109
110
110
const scssStyling = `
111
111
.exampleClass {
112
- position: relative;
113
- width: 14px;
114
- height: 14px;
115
- border-radius: 50%;
116
- background-color: white;
117
- color: white;
118
- animation: flashing 0.8s infinite linear alternate 0.4s;
119
-
120
- &::before,
121
- &::after {
122
- content: '';
123
- display: inline-block;
124
- position: absolute;
125
- top: 0;
112
+ span {
126
113
width: 14px;
127
114
height: 14px;
128
115
border-radius: 50%;
129
116
background-color: white;
130
- color: white;
131
- }
117
+ animation: flashing 1.4s infinite linear;
118
+ margin: 0 4px;
119
+ display: inline-block;
132
120
133
- &::before {
134
- left: -21px;
135
- animation: flashing 0.8s infinite alternate;
136
- }
121
+ &:nth-child(2) {
122
+ animation-delay: 0.2s;
123
+ }
137
124
138
- &::after {
139
- left: 21px ;
140
- animation: flashing 0.8s infinite alternate 0.8s;
125
+ &:nth-child(3) {
126
+ animation-delay: 0.4s ;
127
+ }
141
128
}
142
- }
143
129
144
- @keyframes flashing {
145
- 0% {
146
- background-color: white;
147
- }
148
- 50%,
149
- 100% {
150
- background-color: rgba(255, 255, 255, 0.3);
130
+ @keyframes flashing {
131
+ 0% {
132
+ opacity: 0.2;
133
+ }
134
+ 20% {
135
+ opacity: 1;
136
+ }
137
+ 100% {
138
+ opacity: 0.2;
139
+ }
151
140
}
152
141
}
153
142
` ;
You can’t perform that action at this time.
0 commit comments