PDA

View Full Version : Animated Collapse



dankingsley
11-02-2011, 11:23 PM
1) Script Title: Animated Collapse

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

3) Describe problem:

I'm using the latest version 2.4 and would like to be able to edit how the toggle works.

Using the group option, if a div is open and I click on toggle for another one to open, I would like the first one to slide shut and then the other one slide open. Is this possible?

jscheuer1
11-02-2011, 11:33 PM
You mean like Example 4, 5, and 6 - all part of the group Pets on the demo page do? If so, just follow the example. If not, what exactly are you after?

dankingsley
11-02-2011, 11:36 PM
Sorry, don't think I explained myself very well.

Similar to 4,5 and 6. For example if div 4 is open and I click on the link to open div 6. I want div 4 to fully close by sliding up and then div 6 to slide down.

Thanks,
Dan

ddadmin
11-03-2011, 02:24 AM
Isn't that what the group demo already does (when you click on div6 to open it, any other open div within the group such as div4 is closed at the same time)?

djr33
11-03-2011, 06:01 AM
Are you asking about the timing of the movements? You want one div to completely close, and only after it is done closing, the next one will start to move? If not, I don't understand the difference either.

dankingsley
11-03-2011, 08:34 AM
Yes Daniel, you are correct. and in doing so once one is totally shut the next div will always slide down.

Thanks.