Results 1 to 4 of 4

Thread: animating also the width of the div

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

    Question animating also the width of the div

    1) Script Title: Animated Collapsible DIV v2.4
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm
    3) Describe problem: is it possible to integrate this excellent script with the possibility of managing and animating also the width of divs together with their height? I get it by adding a specific function, but without animation and it's not good-looking. I took a look to the script, but it's better for me not to touch it.
    thanks a lot
    mayerlink

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

    Default

    Animating the width at the same time as the height is easy to do, though personally I don't think it enhances the transition effect. Try the below modified .js file for this.
    DD Admin

  3. #3
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you, admin!
    I'll try it and let you know.
    all the best
    mayerlink

  4. #4
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hallo
    this was missing:
    Code:
    this.$divref.css(ac.generatemap(['width', this.getAttr('width')], ['display', cssdisplay]))
    I'm testing the script with width parameter and it seems to do the job I want, exept an "odd to me" behaviour: I'll post again.
    have a nice day
    mayerlink

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
  •