Skip to content

Commit

Permalink
Specify a transform value at 0% keyframe (#3598)
Browse files Browse the repository at this point in the history
In Firefox, transform animations which don't specify 0% or 100% keyframe value
are not properly optimized if the animations are scrolled-out [1]. Such
animations unfortunately consume much CPU rather than visible ones. An easy
way to avoid this is to specify the missing keyframe value.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1430884
  • Loading branch information
hiikezoe authored and gorhill committed Mar 13, 2018
1 parent 796152c commit d104ee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/css/3p-filters.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@keyframes spin {
0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); }
100% { transform: rotate(360deg); -webkit-transform: rotate(360deg); }
}
ul {
Expand Down

0 comments on commit d104ee2

Please sign in to comment.