File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -261,8 +261,8 @@ const SPINNERS: any = {
261
261
return {
262
262
r : 5 ,
263
263
style : {
264
- top : 9 * Math . sin ( 2 * Math . PI * index / total ) ,
265
- left : 9 * Math . cos ( 2 * Math . PI * index / total ) ,
264
+ top : ( 9 * Math . sin ( 2 * Math . PI * index / total ) ) + 'px' ,
265
+ left : ( 9 * Math . cos ( 2 * Math . PI * index / total ) ) + 'px' ,
266
266
[ CSS . animationDelay ] : - ( dur - ( ( dur / total ) * index ) ) + 'ms'
267
267
}
268
268
} ;
@@ -276,8 +276,8 @@ const SPINNERS: any = {
276
276
return {
277
277
r : 5 ,
278
278
style : {
279
- top : 9 * Math . sin ( 2 * Math . PI * index / total ) ,
280
- left : 9 * Math . cos ( 2 * Math . PI * index / total ) ,
279
+ top : ( 9 * Math . sin ( 2 * Math . PI * index / total ) ) + 'px' ,
280
+ left : ( 9 * Math . cos ( 2 * Math . PI * index / total ) ) + 'px' ,
281
281
[ CSS . animationDelay ] : - ( dur - ( ( dur / total ) * index ) ) + 'ms'
282
282
}
283
283
} ;
@@ -302,7 +302,7 @@ const SPINNERS: any = {
302
302
return {
303
303
r : 6 ,
304
304
style : {
305
- left : ( 9 - ( 9 * index ) ) ,
305
+ left : ( 9 - ( 9 * index ) ) + 'px' ,
306
306
[ CSS . animationDelay ] : - ( 110 * index ) + 'ms'
307
307
}
308
308
} ;
You can’t perform that action at this time.
0 commit comments