Skip to content

Instantly share code, notes, and snippets.

View philandrews100's full-sized avatar

Philip Andrews philandrews100

  • Roku
  • Southport
  • 23:11 (UTC)
View GitHub Profile
@surajsau
surajsau / ParallaxScreen.kt
Last active September 6, 2025 14:53
Parallax effect with Jetpack Compose
@Composable
fun ParallaxScreen(modifier: Modifier = Modifier) {
val context = LocalContext.current
val scope = rememberCoroutineScope()
var data by remember { mutableStateOf<SensorData?>(null) }
DisposableEffect(Unit) {
val dataManager = SensorDataManager(context)
dataManager.init()