Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Hero image transition #196

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Hero image transition #196

wants to merge 13 commits into from

Conversation

andhie
Copy link
Contributor

@andhie andhie commented Sep 22, 2018

Fixes #66

@nic0lette
Copy link
Contributor

Hi @andhie ! This is really cool! Thanks for working on it. I do have a few comments:

First, it looks like you've changed (slightly) click handling when adding the shared element transition. I wonder if you could revert that, so this PR is exclusively about the shared element transition.

If you slow the animation down (Developer options -> Transition animation scale + Animator duration scale, set both to 5x) you can see the transition feels a bit off. Specifically, while the image from the plant list moves to the header position smoothly, the fragment pops in with all the details first, and so the image looks like it slides over the fragment.

This is in contrast with the example animations from the Material Design website: https://material.io/design/components/lists.html#behavior -- The hero image should move and expand, either revealing the text as it expands or having the text fade in afterwards, so it looks as though the plant details fragment is unfolding from the plant item.

Does that make sense?

@andhie
Copy link
Contributor Author

andhie commented Dec 22, 2018

i have revert the click listener code.
for the MD anim you mentioned, its the Condensed Transition type. it doesnt animate the hero image. which approach would be preferable? the one moving the hero image or the condensed transition
https://material.io/design/motion/customization.html#condensing-transitions

@nic0lette
Copy link
Contributor

Hi @andhie :) That makes sense. I think the animation that's on the right side (captioned with "The list item and focal element transition...") is close to what I was thinking about, and feels closer to what you had, since the hero image was animating up.

Does that help?

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@googlebot
Copy link

CLAs look good, thanks!

@andhie
Copy link
Contributor Author

andhie commented Dec 23, 2018

@nic0lette i've tweak a little transition animation.
there are areas i'm not satisfied with.

Enter Transition: the collapsingtoolbar title appears after everything completed
Return Transition: the text can still be seen for a brief moment during Fade

do you have any suggestions to improving this?

@nic0lette
Copy link
Contributor

Sorry for the slow reply :)

I took a look at this and I think the enter transition needs to fade the moving header image as it settles into place so that the collapsing toolbar (with the text) can be seen. (At least, what I think is happening is that the moving image is covering the toolbar and so, until it's removed at the end, the title isn't visible).

Unfortunately I'm still learning these things and so I wasn't able to quickly verify this, but you may be able to :)

@andhie
Copy link
Contributor Author

andhie commented Jan 16, 2019

Good news: i have done a test, it's as you mentioned, the moving image overlay is covering/hovering over the actual image+title and only appear when the overlay disappears.
Bad news: i have no idea how to proceed or have any hint to solve this.

@andhie
Copy link
Contributor Author

andhie commented Feb 1, 2019

Changes in #315 makes the title appearing out of order is now invalid.

@codingjeremy codingjeremy changed the base branch from master to main September 29, 2020 19:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hero image transition animation
4 participants