Link to home
Start Free TrialLog in
Avatar of flow79
flow79Flag for United States of America

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(currMenu).style
                        if (thisMenu.display == "block") {
                              thisMenu.display = "none"
                        }
                        else {
                              thisMenu.display = "block"
                        }
                        return false
                  }
                  else {
                        return true
                  }
}
SOLUTION
Avatar of Jagadeesh M
Jagadeesh M
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of flow79

ASKER

sorry guys for the delay in response - i feel bad i have neglected my responsibilities in replying.  

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!