Skip to content

Conversation

andycall
Copy link
Member

This PR adds a repaintBoundary to improve paint performance when a user adds animated images via the CSS background-image property.

.background-image {
  background-image: url("https://gamevip-vivofs-static.vivo.com.cn/C0KwF6zMv7Cb99us/vassets/i/2qucd7bn.gif");
  background-size: cover;
  background-repeat: no-repeat;
}
image

@andycall andycall force-pushed the feat/optimize_background_image branch from 39c1a6a to 1fcf58b Compare February 22, 2024 14:44
@andycall andycall force-pushed the feat/optimize_background_image branch from babcf35 to a43bfa2 Compare March 10, 2024 17:11
@andycall andycall added this pull request to the merge queue Mar 11, 2024
Merged via the queue into main with commit 39c476d Mar 11, 2024
@andycall andycall deleted the feat/optimize_background_image branch March 11, 2024 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants