Smooth transistion on clicking a tag

Tell us what’s happening:

on clicking the a href in that navbar there is a smooth transition in the freecodecamp site.
In my site when a click the a tag it jumps without a smooth effect.
i want to know how to create it.

Your code so far


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Build a Personal Portfolio Webpage

Link to the challenge:

There is different ways to implement this: It can be done with jQuery, with pure js or with CSS


On my page I did it with https://www.npmjs.com/package/react-scroll which probably is, the english translation of the danish saying is shooting sparrows with canons
/Jakob
1 Like