Function

CarouselParallaxScrollEffectState

Create a CarouselParallaxScrollEffectState object for a androidx.compose.foundation.lazy.LazyRow or androidx.compose.foundation.lazy.LazyColumn.

CarouselParallaxScrollEffectState

Source set: Common
public fun CarouselParallaxScrollEffectState(
    state: LazyListState
): CarouselParallaxScrollEffectState

Create a CarouselParallaxScrollEffectState object for a androidx.compose.foundation.lazy.LazyRow or androidx.compose.foundation.lazy.LazyColumn.

Remember a CarouselParallaxScrollEffectState for the LazyList and use carouselParallaxScrollEffect on each item's container that should be clipped and translated to create the effect.

Parameters

state the LazyListState of the list

CarouselParallaxScrollEffectState

Source set: Common
public fun CarouselParallaxScrollEffectState(
    state: LazyGridState
): CarouselParallaxScrollEffectState

Create a CarouselParallaxScrollEffectState object for a androidx.compose.foundation.lazy.grid.LazyHorizontalGrid or androidx.compose.foundation.lazy.grid.LazyVerticalGrid.

Remember a CarouselParallaxScrollEffectState for the LazyGrid and use carouselParallaxScrollEffect on each item's container that should be clipped and translated to create the effect.

Parameters

state the LazyGridState for the grid
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: