This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progressCircular): switch to using SVG transform for the indeterm…
…inate circle rotation and apply some performance optimizations Closes #7414
- Loading branch information
1 parent
1554eb1
commit d67389c
Showing
5 changed files
with
96 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
$progress-circular-indeterminate-duration: 2.9s; | ||
|
||
// | ||
// Keyframe animation for the Indeterminate Progress | ||
// | ||
@keyframes indeterminate-rotate { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
|
||
// Used to avoid unnecessary layout | ||
md-progress-circular { | ||
svg { | ||
// Ensures that the parent has the same dimensions as the circle. | ||
display: block; | ||
} | ||
position: relative; | ||
|
||
&._md-mode-indeterminate { | ||
svg { | ||
animation: indeterminate-rotate $progress-circular-indeterminate-duration linear infinite; | ||
position: absolute; | ||
overflow: visible; | ||
top: 0; | ||
left: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@crisbeto Seems like this line is now wrong?