How To Animate Horizontal Scroll Html
I saw online that you could use the code at the bottom to animate a horizontal link (fiddle demo at the bottom). I am somewhat of a beginner to html, and would like to use this in
You need anchor elements like
<ahref="#d1"> d1 </a>
and target elements like
<div class="placeholder"id="d1">
than using this jquery
functionhorizAnim(event) {
event.preventDefault();
$('html,body').animate({
scrollLeft: $(this.hash).offset().left
}, 'slow');
}
$("a").on("click", horizAnim);
Post a Comment for "How To Animate Horizontal Scroll Html"