vcl-go-to-top

A fix positioned control to jump to the top of a scrolled viewport

Usage no npm install needed!

<script type="module">
  import vclGoToTop from 'https://cdn.skypack.dev/vcl-go-to-top';
</script>

README

VCL 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.

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

Classes

  • vclGoToTop

Modifiers

Variables

  • --gototop-color
  • --gototop-bg-color

Demo

example.html on GH-pages.