Results 1 to 6 of 6

Thread: Animated Collapse

  1. #1
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapse

    1) Script Title: Animated Collapse

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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)?
    DD Admin

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes Daniel, you are correct. and in doing so once one is totally shut the next div will always slide down.

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •