Add forwards fill mode to animations in view transition fixture - #34502
Conversation
It turns out that View Transitions can sometimes overshoot and then we need to ensure it fills.
|
Comparing: 348a4e2...b17bdc3 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
|
Is there any documentation on this from Chrome? If so we could consider docs section for trouble shooting linking out to resources like it. People may assume a React bug and not use the feature instead of investigating things like a CSS animation edge case. |
|
I think it's because the animation used here is 0.25s and a lot of the default ones are 0.3s. Since the animations keep playing until all of them have completed and the view transition finishes, it happened to kept looping for 0.05s. It was just more noticeable in Chrome. That's probably just a general view transition gotcha to document. It can be hard to have an animation shorter than the default since you have to override all of them. |
It turns out that View Transitions can sometimes overshoot and then we need to ensure it fills. It can otherwise sometimes flash in Chrome.
This is something users might hit as well.