You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When animating Shared Element Transitions to a view that is transformed in some sort (translateX in my case, but might also be scale, translateY, ...), the Shared Element Transitions weirdly miscalculates the destination coordinates at first, but manages to get it right halfway through. Yes, that's my explanation. It's weird, take a look at it yourself:
So in this example, I'm translating the parent view across the X axis, so first Post is translateX: 0 which works perfectly fine. Second post is translateX: -SCREEN_WIDTH, which already looks a bit off. And then it just goes on, with the animation going further to the origin point (0 aka "left") the more you translate x.
To Reproduce
Create parent view that translates X axis
Create list of views in that translated view (Shared Elements)
Push a Modal with SETs that animates the Shared Element (image)
Dismiss the modal with the SET
Expected behavior
I expect the animation to work normally
Actual Behavior
The animation swiftly goes towards the origin (0 aka "left"), then finds out it's a bit drunk and finds it's way back home (actual position)
🐛 Bug Report
When animating Shared Element Transitions to a view that is transformed in some sort (
translateX
in my case, but might also bescale
,translateY
, ...), the Shared Element Transitions weirdly miscalculates the destination coordinates at first, but manages to get it right halfway through. Yes, that's my explanation. It's weird, take a look at it yourself:📹 Here's a video demo: https://i.imgur.com/tNcQwD1.mp4
So in this example, I'm translating the parent view across the X axis, so first Post is
translateX: 0
which works perfectly fine. Second post istranslateX: -SCREEN_WIDTH
, which already looks a bit off. And then it just goes on, with the animation going further to the origin point (0
aka "left") the more you translate x.To Reproduce
Expected behavior
I expect the animation to work normally
Actual Behavior
The animation swiftly goes towards the origin (
0
aka "left"), then finds out it's a bit drunk and finds it's way back home (actual position)Your Environment
Reproducible Demo
@yogevbd hit me up on discord for a repro demo
Related Issues
The text was updated successfully, but these errors were encountered: