Skip to content

Instantly share code, notes, and snippets.

View pranavjayaraj's full-sized avatar

Pranav Jayaraj pranavjayaraj

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pranavj7z on github.
  • I am pranavjayaraj (https://keybase.io/pranavjayaraj) on keybase.
  • I have a public key whose fingerprint is B308 B1EE EF97 F203 8930 590E C730 2798 4ED9 0CA7

To claim this, I am signing this object:

@pranavjayaraj
pranavjayaraj / jetpackanimations.kt
Last active March 26, 2021 05:12
Jetpack animations
@Composable
fun AnimationLayout() {
var state by remember { mutableStateOf(false) }
var animSpec by remember { mutableStateOf("snap") }
val startColor = Color.Blue
val endColor = Color.Green
@Composable
fun AnimationLayout() {
var state by remember { mutableStateOf(false) }
val startColor = Color.Blue
val endColor = Color.Green
val backgroundColor by animateColorAsState(