Results 1 to 2 of 2

Thread: Animated Collapsible DIV v2.4 - Toggle icon «before» slide animation

  1. #1
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Animated Collapsible DIV v2.4 - Toggle icon «before» slide animation

    1) Script Title: Animated Collapsible DIV v2.4

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem: When using the toggle-image functionality, this icon-image toggles «after» the DIV finishes the sliding operation. Is it possible to toggle the icon-image «before» the sliding operation?

    [additional context: in a web-project for children, the icon-image is a leaver that has «up» and «down» positions, and when toggled it shows/hides a DIV with cartoons. At the moment, the lever only moves to the down position «after» the sliding animation is done and it would be fantastic to move it «before» the animation performs. For the moment, I´m using a very fast opening speed so that the toggle-image and the DIV-opening seem to occur at near the same time, but the great solution would be to be able to toggle the icon «before» the animation].

    Thanks for any help!
    Best regards

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

    Default

    Sure, try the below modified .js file, which should do the trick.
    DD Admin

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
  •