I’m relatively new to js and I’m trying to implement a simple .animate() feature in my portfolio. As you can see here, with the code I wrote the div called ribbon slides down perfectly, but it seems to ignore the “else” part of the script.
I know I’m probably doing a dumb mistake, but I can’t seem to be able to work out anything better at the moment!
Sorry for my bad english, sucks to be Italian.
Just taking what you had, simply put the
ifinside theclickevent.http://jsfiddle.net/Rkqge/12/