flow79
asked on
sliding menu - need animation?
hello all! i have a client who is looking for a sliding menu in JavaScript. I have a basic toggleMenu function written which works fine, however, they now want the menu to smoothly slide, not just appear. does anyone know how to make the menu slide down as it appears? below is my current easy toggleMenu function.
Thanks! BTW, things are NOT absolutely positioned, so absolute positioning is a negative in this instance.
function toggleMenu(currMenu) {
if (document.getElementById) {
thisMenu = document.getElementById(cu rrMenu).st yle
if (thisMenu.display == "block") {
thisMenu.display = "none"
}
else {
thisMenu.display = "block"
}
return false
}
else {
return true
}
}
Thanks! BTW, things are NOT absolutely positioned, so absolute positioning is a negative in this instance.
function toggleMenu(currMenu) {
if (document.getElementById) {
thisMenu = document.getElementById(cu
if (thisMenu.display == "block") {
thisMenu.display = "none"
}
else {
thisMenu.display = "block"
}
return false
}
else {
return true
}
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have this figured out - got the example from: http://javascript.internet.com/navigation/sliding-text-navigation-menu.html - i was able to modify it to make it work vertically, not horizontally. But thank you both for your informative links. I will be splitting the points between both of you. Thanks agaiN!