# XWUIScrollTo

Smooth scroll to target element

## Basic Usage

A "scroll to section" trigger that smooth-scrolls to a target by id.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A "scroll to section" trigger that smooth-scrolls to a target by id.
```

## With Offset

Scrolls to a point offset px above the target to clear a sticky header.

```example
file: examples/WithOffset.ts
html: examples/WithOffset.html
title: With Offset
description: Scrolls to a point offset px above the target to clear a sticky header.
```

## Centered

`block: "center"` brings the target to the middle of the viewport.

```example
file: examples/Centered.ts
html: examples/Centered.html
title: Centered
description: block "center" brings the target to the middle of the viewport.
```

```api
```
