JSFiddle - React, Tailwind, and code Playground
by taneleero
HTML
<div class="graphic">Click here</div>
<div id="bam-items-container">
Here you have the changing text content
</div>
CSS
.graphic {
height:100px;
width:100%;
background:red;
margin-bottom:1000px;
}
#bam-items-container {
height:1000px;
}
JavaScript
$('.graphic').click(function(){
$("html, body").animate({
scrollTop: $('#bam-items-container').offset().top
});
});