# `Plushie.Command.Scroll`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.7.2/lib/plushie/command/scroll.ex#L1)

Scroll commands: absolute, relative, and snap positioning.

All functions support window-qualified paths (`"window#widget"`).

## Example

    def update(model, %WidgetEvent{type: :click, id: "to-top"}) do
      {model, Command.Scroll.snap_to("main#content", 0.0, 0.0)}
    end

# `scroll_by`

```elixir
@spec scroll_by(String.t(), number(), number()) :: Plushie.Command.t()
```

Sends the `scroll_by` command to the widget.

# `scroll_to`

```elixir
@spec scroll_to(String.t(), number(), number()) :: Plushie.Command.t()
```

Sends the `scroll_to` command to the widget.

# `snap_to`

```elixir
@spec snap_to(String.t(), number(), number()) :: Plushie.Command.t()
```

Sends the `snap_to` command to the widget.

# `snap_to_end`

```elixir
@spec snap_to_end(String.t()) :: Plushie.Command.t()
```

Sends the `snap_to_end` command to the widget.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
