Home › Forums › JavaScript › Animated show and hide within a show and hide? › Re: Animated show and hide within a show and hide?
September 28, 2012 at 1:03 pm
#110976
Vermaas
Participant
As you can read in the documentation of slideToggle, you’ve got a callback. You can use a callback to have an effect in and effect.
So let’s say you want to slideToggle the main div and want the div within that div to be shown with the jQuery function show().
That might look like this: http://codepen.io/anon/pen/IBxfG
On that way you can add a animation (or so) on a “moving” object. Is this what you meant?