View Full Version : Resolved Accordion Content script animation isn't smooth..and it snaps into position.
AshleyQuick
12-25-2008, 05:58 AM
1) Script Title: Accordion Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.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
ddadmin
12-25-2008, 06:14 AM
Are you talking about on the DD demo pages in general, or a specific instance on your own?
AshleyQuick
12-25-2008, 06:25 AM
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.
AshleyQuick
12-25-2008, 06:34 AM
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?
ddadmin
12-27-2008, 09:05 AM
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? (http://www.htmlcodetutorial.com/linking/_A_NAME.html)
AshleyQuick
12-27-2008, 09:57 AM
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 :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.