UIkit Totop scroll


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 –

Example:

<a href="#" uk-totop uk-scroll>Go to Top</a>

Try it »

If you run the above example it will produce output something like this-

UIkit Totop scroll


Advertisements

Add Comment

📖 Read More