Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Last active September 11, 2022 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsoltk/c73503ff8988e5f411561dbeeae29a39 to your computer and use it in GitHub Desktop.
Save zsoltk/c73503ff8988e5f411561dbeeae29a39 to your computer and use it in GitHub Desktop.
// Scaled down to 0% (not visible)
private val queued = Props(
scale = 0f,
)
// Scaled down to 85%
private val bottom = Props(
scale = 0.85f,
)
// Scale 100%
// Should also be rendered above the bottom card (zIndex)
private val top = Props(
scale = 1f,
zIndex = 1f,
)
// Should be off the screen with offset and rotation
// + should be rendered above the next top card
private val votePass = Props(
offsetX = (-(1500).dp,
rotationZ = -270f,
zIndex = 2f,
)
// Should fly off the screen with offset and rotation
// + should be rendered above the next top card
private val voteLike = Props(
offsetX = 1500.dp,
rotationZ = 270f,
zIndex = 2f,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment