Posted By

dloop on 09/12/10


Tagged


Versions (?)

Jquery: Toggle element left or right


 / Published in: jQuery
 

float element to toggle from the direction its coming from

  1. $(document).ready(function() {
  2. $("#element-to-toggle").hide();
  3. $("#trigger").click(function() {
  4. $("#element-to-toggle").animate({width: "toggle"}, 500);
  5. });
  6. });

Report this snippet  

You need to login to post a comment.