Home › Forums › JavaScript › Jquery .animate › Re: Jquery .animate
April 28, 2011 at 6:40 pm
#48949
whiteInkDesign
Member
Johnny is right on, with .animate you can’t actually toggle per-say, but you can create a variable like var portSize = “small”; then use an if statement to grow the div on click, resign the variable to something like “big”, and add another if statement that shrinks the div if var portSize = “big”; then assign it back to “small” at the end, making it toggle-like.