Skip to content

Instantly share code, notes, and snippets.

@catalinghita8
Last active July 7, 2021 13:34
Show Gist options
  • Save catalinghita8/63bf2f692f5919ea72df779bce28fbde to your computer and use it in GitHub Desktop.
Save catalinghita8/63bf2f692f5919ea72df779bce28fbde to your computer and use it in GitHub Desktop.
val scrollOffset: Float = min(
1f,
1 - (scrollState.firstVisibleItemScrollOffset / 600f +
scrollState.firstVisibleItemIndex)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment