@vcl/go-to-top
Version:
A fix positioned control to jump to the top of a scrolled viewport
32 lines (18 loc) • 587 B
Markdown
# [VCL](https://vcl.github.io/) go-to-top
A fixed positioned control to jump to the top of a scrolled viewport.
## Features
This component is a specialization of the
[button component](https://github.com/vcl/button).
## Usage
The vertical placement is `1em` to the bottom of the viewport.
Horizontally it should be placed right to the element with
the `vclApp` class with `+1em` offset.
[basic example](/demo/example.html)
## Classes
- `vclGoToTop`
## Modifiers
## Variables
- `--gototop-color`
- `--gototop-bg-color`
## Demo
[example.html](/demo/example.html) on GH-pages.