---
title: "CarouselParallaxScrollEffectState"
description: "A state holder for scrollable items to track effect values that are applied by the [carouselParallaxScrollEffect] modifier."
type: "interface"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Common

```kotlin
public interface CarouselParallaxScrollEffectState
```

A state holder for scrollable items to track effect values that are applied by the
[carouselParallaxScrollEffect](/jetpack-compose/androidx.compose.material3/material3/modifiers/carouselParallaxScrollEffect/api) modifier.

Use one of the [CarouselParallaxScrollEffectState](/jetpack-compose/androidx.compose.material3/material3/interfaces/CarouselParallaxScrollEffectState/api) functions to create an instance of this
interface using `LazyListState` or `LazyGridState`, or implement the interface directly for a
custom layout.

## Properties

### orientation

> Source set: Common

```kotlin
public val orientation: Orientation
```

The scroll orientation of the container.

## Functions

### calculateItemInfo

> Source set: Common

```kotlin
public fun calculateItemInfo(index: Int): CarouselParallaxScrollEffectItemInfo
```

Returns visual effect values ([CarouselParallaxScrollEffectItemInfo](/jetpack-compose/androidx.compose.material3/material3/classes/CarouselParallaxScrollEffectItemInfo/api)) for the item at
`index`.

Note that this function should not be called during composition. Make sure to call
getItemInfo from a graphics, layout, or other Modifier.Node where changes to the underlying
info will not cause unwanted recompositions.
