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()
@ChathuraHettiarachchi
ChathuraHettiarachchi / MotionLayoutTry.kt
Last active April 22, 2025 16:58
This is a sample implementation of AirBnB search bar transition on Android usin Jetpack Compose MotionLayout, MotionScene with DSL. You need to replace the images on `destinations` to work this. FInd the video link https://twitter.com/i/status/1778640663086829622
package com.chootadev.composetryout
import androidx.annotation.DrawableRes
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.keyframes
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable