Answers for "how to make horizontal scroll button"

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 horizontal scroll button"

Browse Popular Code Answers by Language