mirror of
https://github.com/facebook/react.git
synced 2026-02-21 19:31:52 +00:00
Add forwards fill mode to animations in view transition fixture (#34502)
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.
This commit is contained in:
committed by
GitHub
parent
348a4e2d44
commit
5e0c951b58
@@ -56,10 +56,10 @@
|
||||
}
|
||||
|
||||
::view-transition-new(.enter-slide-right):only-child {
|
||||
animation: enter-slide-right ease-in 0.25s;
|
||||
animation: enter-slide-right ease-in 0.25s forwards;
|
||||
}
|
||||
::view-transition-old(.exit-slide-left):only-child {
|
||||
animation: exit-slide-left ease-in 0.25s;
|
||||
animation: exit-slide-left ease-in 0.25s forwards;
|
||||
}
|
||||
|
||||
:root:active-view-transition-type(navigation-back) {
|
||||
|
||||
Reference in New Issue
Block a user