Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MessiasLima/ComposeSharedElementTransitionSample

Repository files navigation

Jetpack compose Shared element transition

This is a simple application that aims to demonstrate the shared element transition animation using Jetpack compose and Compose navigation

sahred.element.transition.mp4

I also customized the NavHost animations to make the transition smoother.

The shared element transition is achieved using the .sharedElement modifier on both the start and target elements.

 .sharedElement(
 state = rememberSharedContentState(key = "key"), // Element identifier
 animatedVisibilityScope = animatedContentScope, // Animation scope
 )

Further info is available on the documentation page.

About

Just a simple project to demonstrate the shared element transition on Android using Jetpack compose

Topics

Resources

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /