Skip to content

Instantly share code, notes, and snippets.

@nikit19
Created October 24, 2021 07:15
Show Gist options
  • Save nikit19/4ec286ac91ce44e877559f83c1b42904 to your computer and use it in GitHub Desktop.
Save nikit19/4ec286ac91ce44e877559f83c1b42904 to your computer and use it in GitHub Desktop.
fun scalingParams(
edgeScale: Float = 0.5f,
edgeAlpha: Float = 0.5f,
minElementHeight: Float = 0.2f,
maxElementHeight: Float = 0.8f,
minTransitionArea: Float = 0.2f,
maxTransitionArea: Float = 0.6f,
scaleInterpolator: Easing = CubicBezierEasing(0.25f, 0.00f, 0.75f, 1.00f),
viewportVerticalOffsetResolver: (Constraints) -> Int = { (it.maxHeight / 5f).toInt() }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment