/ Published in: jQuery
float element to toggle from the direction its coming from
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function() { $("#element-to-toggle").hide(); $("#trigger").click(function() { $("#element-to-toggle").animate({width: "toggle"}, 500); }); });