Hopefully this ties together posts where gaps are missing, as I am having a ton of trouble with this.
Trying to toggle the div so it slides out of view and back into view each time a button is pushed. Ultimately will be two or more dividers sliding out at the same time. I'm using:
//css
display {visibility:hidden}
Then checking in the code for:
//js$
("#initiate").click( function(event) {
$("#initiate").click( function(event) {
if ($("#nav").is(":hidden")) {
$("#nav").stop().animate({
right: '520px'
}, 1300);
}
else {
$("#nav").stop().animate({
right: '320px'
}, 1300);
}
});
Multiples problems: 1. Slide only works if the visibility is set to something other than "none." 2. Only slides out, not back in.
How can I make this work guys?