JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

JavaScript

$('html, body').animate({
        scrollTop: $('#DIV_ID').offset().top - 20 //#DIV_ID is an example. Use the id of your destination on the page
    }, 'slow');