haze icon indicating copy to clipboard operation
haze copied to clipboard

Haze Doesn't Animate Properly in a Shared Transition

Open camka14 opened this issue 9 months ago • 3 comments

When trying to do a shared transition with a card that has Haze applied, the effect switches to a solid color for the duration of the transition.

Expected Behavior

It should animate along with any content.

Actual Behavior

https://github.com/user-attachments/assets/f35b5abf-83d2-478a-bc54-4e93dd10b439

camka14 avatar Mar 28 '25 15:03 camka14

There's likely to be very little we can do about this.

Please provide a reproducible sample, as I don't really have time to setup a sample for this right now.

chrisbanes avatar Mar 28 '25 16:03 chrisbanes

I believe this is due to how the Shared Element Transition works in Jetpack Compose. It creates an overlay with a copy of the target composable, and something is going wrong there.

Yeah, without a working reproducer project, it’s hard to say.

desugar-64 avatar Mar 28 '25 18:03 desugar-64

When trying to do a shared transition with a card that has Haze applied, the effect switches to a solid color for the duration of the transition.

Expected Behavior

It should animate along with any content.

Actual Behavior

screen-20250328-083426.mp4

I'm having the same problem. Did you find a solution for this problem?

alprshn avatar Aug 01 '25 08:08 alprshn