Skip to content

Instantly share code, notes, and snippets.

View saifikram969's full-sized avatar
🎯
Focusing

Saif ikram saifikram969

🎯
Focusing
View GitHub Profile
@saifikram969
saifikram969 / Parallax.kt
Created August 9, 2025 01:18 — forked from ardakazanci/Parallax.kt
Jetpack Compose Parallax Concept
@Composable
fun Modifier.parallaxHeader(
listState: LazyListState,
headerHeightDp: Dp,
maxStretchFactor: Float = 3.0f,
pullMultiplier: Float = 1.5f,
onHeightChanged: (Dp) -> Unit
): Modifier {
val density = LocalDensity.current
val coroutineScope = rememberCoroutineScope()