XF 2.2 scroll-behavior: smooth;

Nicolas FR

Well-known member
I put links on the top of forum home to categories (on the same page).
I tried to get a smooth scroll when i click on them but i can't figure it out.

in extra.less i have
.smooth {
    scroll-behavior: smooth;

But where i have to put the smooth class ?
I tried on node_category_list template on some places but without success.

Is someone can help me ?
Try applying it to the entire HTML document:

html { scroll-behavior: smooth; }

Be sure to test around your forum afterwards to make sure other scroll to actions still work as expected.
Top Bottom