Components
← All components

Scroll Visibility

stimeo--scroll-visibility

Shows and hides an element by how far or which way you scroll, for back-to-top or a hiding header.

  • Core

Shows and hides an element as you scroll, in one of two ways: appearing once you are past a certain distance, or hiding while you scroll down and returning when you scroll up. That suits a back-to-top button and a header that gets out of the way while reading. It watches the page by default, and in a layout where the page itself does not move you can point it at the box that does. While hidden, the element also leaves the Tab order, so focus never lands on a button nobody can see. Returning to the top is instant for visitors who ask for less motion.

running

Scroll down inside this box and a back-to-top button appears at the bottom right.

Content line 1

Content line 2

Content line 3

Content line 4

Content line 5

Content line 6

Content line 7

Content line 8

Content line 9

Content line 10

Content line 11

Content line 12

Keyboard

KeyAction
Enter / Space Activate the back-to-top button (standard button behavior).