Results 1 to 2 of 2

Thread: Animated DIV: Variable Height Issue

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated DIV: Variable Height Issue

    1) Script Title: Animated Collapsible DIV v2.4

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

    3) Describe problem: I have the script working fine. However, if I don't specify a height value, the slide animation is very choppy (my guess is due to the script adjusting to the content height on the fly). Once a height is specified, the animation slides smoothly. My issue is I have this implemented in a Wordpress install where the content of the hidden DIV is a user generated post that can change heights depending on the amount of content inserted by the user. As in, they can type whatever they want and I have no way to know ahead of time. How can I keep the smooth animation without specifying a height?

    And sorry, this is on an intranet site, so no URL.

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

    Default

    Actually, whether or not an explicit height is defined shouldn't make that much of a difference smoothness wise in itself. It only becomes an issue if the content DIV being animated is very long, though there may be other subtle variables as well that I'm not aware of. Ideally if you can put up a test page demonstrating what you're saying, it will help.
    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
  •