Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Created January 26, 2020 17:38
Show Gist options
  • Save zsoltk/41ffa1e3c6aeba287cc11f728fa210e2 to your computer and use it in GitHub Desktop.
Save zsoltk/41ffa1e3c6aeba287cc11f728fa210e2 to your computer and use it in GitHub Desktop.
private val rotation = FloatPropKey()
private val definition = transitionDefinition {
state(0) { this[rotation] = 0f }
state(1) { this[rotation] = 360f }
transition {
rotation using repeatable {
animation = tween { duration = 1000 }
iterations = Infinite
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment