-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared Element Transitions for Modals #6647
Comments
Here are some demos of the current implementation: What do you think @guyca @yogevbd ? ;) In some cases, the drag down animation still doesn't work 100%, since it shortly flickers back to it's original position, instead of the scaled down one. Other than that, it's perfectly smooth on iOS. That leaves us with TODOs:
|
hmmm how often does the drag-flicker reproduce? |
@guyca on iOS about 1 out of 3 times... 😥 |
And reproduces in the Playground, right? |
Last time I checked it did, I'll check again in a sec 👍 |
@guyca @yogevbd I noticed another bug while playing around in the playground: When the
I've tried debugging it as far as I can, and I noticed that it never adds the |
@mrousavy shared element transition in modals is supported on iOS in 7.20 and Android support was introduced in 7.3.0. Are we good to close this issue? |
@guyca oh yeah of course! the flickering bug is tracked in another issue, so this can be closed. thanks |
Intro
Currently Shared Element Transitions (SETs) only work for Screens by using
push
andpop
commands. This is a bit weird, since there's a lot of issues with using custom screen animations, such as the top bar flickering and the bottom tabs sliding out. With Modals, we don't have those issues anymore while providing extra flexibility, such as showing the parent screen beneath, blurring the parent screen, etc.TODO
showModal
anddismissModal
commands for iOS (almost done in Shared Element Transitions for Modals! #6625 thanks to @yogevbd)mergeOptions
indismissModal
borderRadius
animations not being applied (also see this demo)from
scale/transform is being applied but has been reset to1
in the meantime (see this demo)showModal
anddismissModal
commands for Android (done in Support shared elements transition in show/dismiss modals #6716)sharedElements
object inshowModal
anddismissModal
(done in Shared Element Transitions for Modals! #6625)Demo
Here's a smooth demo to showcase what it could look like:
The text was updated successfully, but these errors were encountered: