javascript - Need a plugin available in jquery to show hide -


can please provide me pointers slide window plugin, if any, available in jquery. basically, need implement functionality of yahoo mail in can hide advertisement pane displayed on right side of window on click of button.

any on appreciated

thanks , regards, manav

if had element id panel sit on right of screen, , wanted slide right until it's not visible anymore, , remove it, use jquery's animate() function achieve effect:

$('#panel').animate({'margin-left': width-of-the-panel}, function() {     $('#panel').remove(); }); 
  • $('#panel') obtains element id of panel
  • animate() animates provided properties of element , calls function when it's done
  • margin-left: width-of-the-panel (replacing width-of-the-panel actual width of panel, in pixels) animate css property margin-left until has value equal of panel's width, moving right enough disappears off screen
  • $('#panel').remove() removes element dom

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -