mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
@@ -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