---
title: "CarouselParallaxScrollEffectState"
description: "Create a [CarouselParallaxScrollEffectState] object for a [androidx.compose.foundation.lazy.LazyRow] or [androidx.compose.foundation.lazy.LazyColumn]."
type: "function"
lastmod: "2026-09-24"
---
## API Reference

### CarouselParallaxScrollEffectState

> Source set: Common

```kotlin
public fun CarouselParallaxScrollEffectState(
    state: LazyListState
): CarouselParallaxScrollEffectState
```

Create a [CarouselParallaxScrollEffectState](/jetpack-compose/androidx.compose.material3/material3/interfaces/CarouselParallaxScrollEffectState/api) object for a
`androidx.compose.foundation.lazy.LazyRow` or `androidx.compose.foundation.lazy.LazyColumn`.

Remember a [CarouselParallaxScrollEffectState](/jetpack-compose/androidx.compose.material3/material3/interfaces/CarouselParallaxScrollEffectState/api) for the LazyList and use
[carouselParallaxScrollEffect](/jetpack-compose/androidx.compose.material3/material3/modifiers/carouselParallaxScrollEffect/api) on each item's container that should be clipped and translated to
create the effect.

#### Parameters

| | |
| --- | --- |
| state | the [LazyListState](/jetpack-compose/androidx.compose.foundation/foundation/classes/LazyListState) of the list |

### CarouselParallaxScrollEffectState

> Source set: Common

```kotlin
public fun CarouselParallaxScrollEffectState(
    state: LazyGridState
): CarouselParallaxScrollEffectState
```

Create a [CarouselParallaxScrollEffectState](/jetpack-compose/androidx.compose.material3/material3/interfaces/CarouselParallaxScrollEffectState/api) object for a
`androidx.compose.foundation.lazy.grid.LazyHorizontalGrid` or
`androidx.compose.foundation.lazy.grid.LazyVerticalGrid`.

Remember a [CarouselParallaxScrollEffectState](/jetpack-compose/androidx.compose.material3/material3/interfaces/CarouselParallaxScrollEffectState/api) for the LazyGrid and use
[carouselParallaxScrollEffect](/jetpack-compose/androidx.compose.material3/material3/modifiers/carouselParallaxScrollEffect/api) on each item's container that should be clipped and translated to
create the effect.

#### Parameters

| | |
| --- | --- |
| state | the [LazyGridState](/jetpack-compose/androidx.compose.foundation/foundation/classes/LazyGridState) for the grid |

## Code Examples

### MultiAspectCarouselRowSample

```kotlin
@OptIn(ExperimentalMaterial3Api::class)
@Preview
@Sampled
@Composable
fun MultiAspectCarouselRowSample() {
    data class CarouselItem(
        val id: Int,
```
