---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-action-scroll-to.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-action-scroll-to.md
  - href: en/concepts/divs/2/div-action-scroll-to.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-action-scroll-to
Scrolls to a position or switches to the container element specified by the `destination` parameter.

## Parameters
| Parameters | Description |
| --- | --- |
| `destination` | <p>**object**</p><p>Required parameter.</p><p>Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li></p><p>The value has the type `div-action-scroll-destination`.</p><p>Available platforms: Android, iOS, web.</p><p>List of possible values:<li>[offset_destination](offset_destination.md#offset_destination)</li><li>[index_destination](index_destination.md#index_destination)</li><li>[start_destination](start_destination.md#start_destination)</li><li>[end_destination](end_destination.md#end_destination)</li><li>[item_id_destination](item_id_destination.md#item_id_destination)</li></p> |
| `id` | <p>**string**</p><p>Required parameter.</p><p>ID of the element where the action should be performed.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `scroll_to`.</p><p>Available platforms: Android, iOS, web.</p> |
| `animated` | <p>**bool**</p><p>Enables scrolling animation.</p><p>Default value: `true`.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "scroll_to",
  animated: "bool",
  destination*: div-action-scroll-destination,
  id*: "string"
}
```
</details>
