Class: BackToTopOverlay

BackToTopOverlay(props)

new BackToTopOverlay(props)

Displays a little arrow at the bottom right of the viewport.

Parameters:
Name Type Description
props Object
Source:

Extends

  • View

Methods

hide()

Hide the back to top element, if it's visible.

Source:

onBackToTopClick()

Handles the click on the "Back to top" element and scrolls back to the top smoothly.

Source:

show()

Show the back to top element, if it's not visible already.

Source: