Skip to content

Commit

Permalink
fix(spinner): working in firefox and edge
Browse files Browse the repository at this point in the history
fixes #8714
  • Loading branch information
manucorporat committed Oct 23, 2016
1 parent e68b5fc commit ab93f3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/spinner/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
};
Expand All @@ -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'
}
};
Expand All @@ -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'
}
};
Expand Down

0 comments on commit ab93f3f

Please sign in to comment.