---
title: "LazyGridItemScope"
description: "Receiver scope being used by the item content parameter of [LazyVerticalGrid]."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
@LazyGridScopeMarker
sealed interface LazyGridItemScope
```


Receiver scope being used by the item content parameter of `LazyVerticalGrid`.


## Functions

```kotlin
fun Modifier.animateItem(
        fadeInSpec: FiniteAnimationSpec<Float>? = spring(stiffness = Spring.StiffnessMediumLow),
        placementSpec: FiniteAnimationSpec<IntOffset>? =
            spring(
                stiffness = Spring.StiffnessMediumLow,
                visibilityThreshold = IntOffset.VisibilityThreshold,
            ),
        fadeOutSpec: FiniteAnimationSpec<Float>? = spring(stiffness = Spring.StiffnessMediumLow),
    ): Modifier
```


This modifier animates the item appearance (fade in), disappearance (fade out) and placement
changes (such as an item reordering).

You should also provide a key via `LazyGridScope.item`/`LazyGridScope.items` for this
modifier to enable animations.

#### Parameters

| | |
| --- | --- |
| fadeInSpec | an animation specs to use for animating the item appearance. When null is provided the item will be appearing without animations. |
| placementSpec | an animation specs that will be used to animate the item placement. Aside from item reordering all other position changes caused by events like arrangement or alignment changes will also be animated. When null is provided no animations will happen. |
| fadeOutSpec | an animation specs to use for animating the item disappearance. When null is provided the item will be disappearance without animations. |




