Skip to content

Instantly share code, notes, and snippets.

@slopeofhope81
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save slopeofhope81/8968066 to your computer and use it in GitHub Desktop.

Select an option

Save slopeofhope81/8968066 to your computer and use it in GitHub Desktop.
jquery button interaction=DOM manipulation(it makes change to the DOM's representation of the page in the browser.
$(document).ready(function(){
$("#move_up").click(function(){
$("#change_me").animate({top:100}, 1000);
});
$("#move_down").click(function(){
$("#change_me").animate({top:400},1000)
});
$("#change_color").click(function(){
$("#change_me").css("background-color","purple");
});
$("#disappear").click(function(){
$("#change_me").toggle("show");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment