Zerolines.js

ScrollTop

Basic Structure

ScrollTop component requires scroll-top.

<button data-zl="scroll-top toggle-at-[300] speedy">Button</button>

scroll-top

Default scroll back duration is 300ms.

Item Description

toggle-at-[SCROLL_AMOUNT]

(optional)

Specify a scroll aount(number) between [ and ] where to show the button. Double Quatation is not required.

Example

scroll-top toggle-at-[300]

Scroll Back Speed

quickly

(optional)

Scroll Back quickly(100ms).

Example

scroll-top toggle-at-[300] quickly

slowly

(optional)

Scroll Back slowly(500ms).

Example

scroll-top toggle-at-[300] slowly