Skip to content

Tag: smooth-scrolling

Create smooth scrolling effect

I have a code to scroll content horizontally, it works but whenever it scrolls, it scrolls items one by on like breaking, so I want it to scroll smoothly, that is the sample code below, please I need help with it Answer Maybe you can try scroll-behavior: smooth in your css file. Here is an example. Or, if you want

Smooth Scrolling jumps weirdly

I’m working with a nav bar that becomes fixed with a screen max-width < 1000px. The height of the navigation bar is 60px. So it goes backwards with animation 60px if max-with < 1000px. All this works fine, but my problem is that the page jumps weirdly only when the viewport is bigger than 1000px. Answer I think the problem