Results 1 to 6 of 6

Thread: Accordion Content script animation isn't smooth..and it snaps into position.

  1. #1
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Accordion Content script animation isn't smooth..and it snaps into position.

    1) Script Title: Accordion Content

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

    3) Describe problem: Is there a common reason for this? Also, how can I link to the individual sections from other areas in the same page? How would the href look, in other words. Thanks!

    Ashley
    Last edited by AshleyQuick; 12-27-2008 at 05:44 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,887
    Thanks
    3
    Thanked 963 Times in 952 Posts
    Blog Entries
    15

    Default

    Are you talking about on the DD demo pages in general, or a specific instance on your own?
    DD Admin

  3. #3
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Hi!

    http://www.terrazia.com/bu/index.php

    In Firefox and IE, it's not smooth and it seems to snap into position at the end of the animation.

  4. #4
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    K, found the issue. In the "header" style, I had the following:

    .header {
    cursor: hand;
    cursor: pointer;
    margin: 24px 0px 24px 0px;
    }

    these 24px margins on the top and bottom made it "snap"

    ----

    Next question How can I link to these sections from elsewhere in the same page?

  5. #5
    Join Date
    Aug 2004
    Posts
    9,887
    Thanks
    3
    Thanked 963 Times in 952 Posts
    Blog Entries
    15

    Default

    Next question How can I link to these sections from elsewhere in the same page?
    By link, do you meanjump to a specific header via a link on the same page? Why not just create an HTML anchor?
    DD Admin

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    AshleyQuick (12-27-2008)

  7. #6
    Join Date
    Aug 2005
    Posts
    54
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    These:

    <a href="#" onClick="ddaccordion.expandone('header', 0); return false">

    ...right in front of my eyes in the demo...not sure how I missed it before

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
  •