SScrollComponent
This component allows you to scroll to a specific element using a css selector or to the top|bottom of the page.
Preview
Scroll to top
Loading code example. Please wait...
Features
-
Specify an item you want to scroll to using a css selector
-
Scroll to the top or the bottom of the page
-
Support properties like "duration", "offset", etc...
-
Support global theme properties specified in your theme configuration like "offset", "duration", etc...
Import
Install
Interface
-
to *RequiredString
The target when to scroll. Must be a valid css selector
-
duration300number
Specify the duration of the scroll in ms
-
offset0number
Specify the offset of the scroll in px. Usefull if you have a sticky header, etc...
-
offsetX0number
Specify the offset of the scroll x in px. Usefull if you have a sticky header, etc...
-
offsetY100number
Specify the offset of the scroll y in px. Usefull if you have a sticky header, etc...