Skip to content

Commit 6b3fdea

Browse files
committed
Add animation optimization to CHANGELOG
1 parent 1300b0b commit 6b3fdea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ continue to use `react-loading-skeleton` v2.
4242

4343
### Other Changes
4444

45+
- Optimize animation performance:
46+
- The old animation animated the `background-position` property which made
47+
the browser repaint the gradient on every frame.
48+
- The new animation animates the `transform` of a pseudoelement. This
49+
avoids repaints and results in an observable decrease in CPU usage.
50+
- No longer require `width` and `height` to be set for the `circle` prop to
51+
work
4552
- Change the default `duration` from 1.2 s to 1.5 s
4653
- Make the default `Skeleton` base color a _tiny_ bit darker so that the
4754
animation is more visible
48-
- No longer require `width` and `height` to be set for the `circle` prop to
49-
work
5055

5156
### Bug Fixes
5257

@@ -57,6 +62,7 @@ continue to use `react-loading-skeleton` v2.
5762
### Thanks!
5863

5964
- @srmagura
65+
- @aboodz
6066
- @RoseMagura
6167
- @saadaouad
6268
- @rlaunch

0 commit comments

Comments
 (0)