Skip to content

Commit d104ee2

Browse files
hiikezoegorhill
authored andcommitted
Specify a transform value at 0% keyframe (gorhill#3598)
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
1 parent 796152c commit d104ee2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/css/3p-filters.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@keyframes spin {
2+
0% { transform: rotate(0deg); -webkit-transform: rotate(0deg); }
23
100% { transform: rotate(360deg); -webkit-transform: rotate(360deg); }
34
}
45
ul {

0 commit comments

Comments
 (0)