UIkit Totop scroll– This component allows you to create a button which provides functionality to scroll to top when you click on it. It is very simple to create to top scroller, just add attribute uk-totop to button then everything will be automatically taken care by UIkit.
UIkit Totop scroll Example
To create scroll to top functionality on button click event add attribute uk-totop to button simply as below –
If you run the above example it will produce output something like this-