Answers for "how to make a scroll horizontally button in html"

0

how to make a scroll horizontally button in html

//Using jQuery code
	$('#right-button').click(function() {
      event.preventDefault();
      $('#content').animate({
        marginLeft: "+=200px"
      }, "slow");
   });

     $('#left-button').click(function() {
      event.preventDefault();
      $('#content').animate({
        marginLeft: "-=200px"
      }, "slow");
   });
Posted by: Guest on July-26-2021

Code answers related to "how to make a scroll horizontally button in html"

Browse Popular Code Answers by Language