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 …

Smooth Scrolling jumps weirdly

$(function() {$(‘a[href*=#]:not([href=#])’).click(function() { if (location.pathname.replace(/^//, ”) == this.pathname.replace(/^//, ”) && location.hostname == this.hostname) { var …