/ Published in: jQuery
Just leaving this here for my own reference ;)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function(){ $('#clickme').toggle( function(){ $('#animateme').animate({marginLeft: "250"}, 1000); }, function(){ $('#animateme').animate({marginLeft: "0"}, 1000); }); });