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 ofpanel
animate()
animates provided properties of element , calls function when it's donemargin-left: width-of-the-panel
(replacingwidth-of-the-panel
actual width of panel, in pixels) animate css propertymargin-left
until has value equal of panel's width, moving right enough disappears off screen$('#panel').remove()
removes element dom
Comments
Post a Comment