Answer the question
In order to leave comments, you need to log in
How to get UIkit's smooth scroll to work?
UIkit has instructions for setting smooth scrolling to a page. I mean with JS, as they say at the bottom of the page -
UIkit.Utils.scrollToElement(UIkit.$(element, { /* options */ });
$(UIkit.Utils.scrollToElement(UIkit.$('#main', { duration: 1000 })));
, and placed a link on the page that should gently scroll to the desired block - <a class="scroll-down-arrow" href="#main"></a>
but this does not work.
Answer the question
In order to leave comments, you need to log in
I tried to paste it in /template/js/theme.js like this
<a href="#my-id" class="uk-button" data-uk-smooth-scroll>...</a>
if
then there should be a #kuda element that you should slide to, like:<footer id="kuda"></footer>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question