S
S
sega0192020-01-13 15:25:12
UIkit
sega019, 2020-01-13 15:25:12

How to implement smooth scrolling in UIKit3?

Hello! In UIKit, for smooth scrolling, you need to add the uk-scroll attribute. I can't figure out how to add this attribute to standard menu items. If I create a link on the page (following the example of the Uikit3 documentation), everything works out, but the menu buttons do not. Help me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-01-13
@sega019

where is the code?
Prediction:

<ul class="uk-navbar-nav" uk-scrollspy-nav="closest: li; scroll: true">
    <li><a href="#a">A</a></li>
    <li><a href="#b">B</a></li>
    <li><a href="#c">C</a></li>
</ul>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question