Skip to content
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

Animation should only apply to specified transition #38

Open
lukasrosenke opened this issue Jan 2, 2024 · 0 comments
Open

Animation should only apply to specified transition #38

lukasrosenke opened this issue Jan 2, 2024 · 0 comments

Comments

@lukasrosenke
Copy link

lukasrosenke commented Jan 2, 2024

Given for example I have this component:

val container = rememberContentWithOrbitalScope {
        Box(
            modifier = Modifier
                .animateSharedElementTransition(this,
                    SpringSpec(stiffness = 500f),
                    SpringSpec(stiffness = 500f)
                )
                .fillMaxSize()
                .clip(RoundedCornerShape(16.dp))
                .background(Color.White),
        )
}

If I were to wrap this componnent into Column() the scroll animation for this component would be affected by the specified .animateSharedElementTransition(). In my opinion the animation should only apply when the specified rememberSaveable bool is updated, i.e., for the dynamic transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant