fix(spinner): working in firefox and edge

fixes #8714
This commit is contained in:
Manu Mtz.-Almeida
2016-10-23 14:40:08 +02:00
parent e68b5fc8a9
commit ab93f3fc8f

View File

@ -261,8 +261,8 @@ const SPINNERS: any = {
return {
r: 5,
style: {
top: 9 * Math.sin(2 * Math.PI * index / total),
left: 9 * Math.cos(2 * Math.PI * index / total),
top: (9 * Math.sin(2 * Math.PI * index / total)) + 'px',
left: (9 * Math.cos(2 * Math.PI * index / total)) + 'px',
[CSS.animationDelay]: -(dur - ((dur / total) * index)) + 'ms'
}
};
@ -276,8 +276,8 @@ const SPINNERS: any = {
return {
r: 5,
style: {
top: 9 * Math.sin(2 * Math.PI * index / total),
left: 9 * Math.cos(2 * Math.PI * index / total),
top: (9 * Math.sin(2 * Math.PI * index / total)) + 'px',
left: (9 * Math.cos(2 * Math.PI * index / total)) + 'px',
[CSS.animationDelay]: -(dur - ((dur / total) * index)) + 'ms'
}
};
@ -302,7 +302,7 @@ const SPINNERS: any = {
return {
r: 6,
style: {
left: (9 - (9 * index)),
left: (9 - (9 * index)) + 'px',
[CSS.animationDelay]: -(110 * index) + 'ms'
}
};