Jquery: Toggle element left or right

/ Published in: jQuery
Save to your folder(s)

float element to toggle from the direction its coming from

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.