Modern Accordion

by DenonStudio

Show:

bennyhosays

Purchased

Hello – almost a week has passed since i asked the only question in the last 4 weeks. hoping you could spend 1 moment to give some beneficial input. thanks in advance.

Posted 5 months ago
Author

DenonStudio DenonStudioreplied

bennyho, I’m sorry for this late reply.

Currently the click event handler checks for the open tab. If there is one open, it closes it before opening the new one. You need to replace this with some code that checks to see if the clicked tab is in fact the one that is open. If this is true then close the tab, otherwise ignore.

I hope this helps.

Posted 5 months ago

decisionmansays

Purchased

Fantastic file! I knew someone else had asked for so I checked :) can you send me (pls) the same code you sent Stonecold? With the first tab auto-loaded?

Thanks!

Posted 2 months ago
Author

DenonStudio DenonStudioreplied

$(document).ready(function(){ var acc2 = new ModernAccordion('accordion2'); acc2.showItem(0); });
Posted 2 months ago

decisionmansays

Purchased

That’s in the head, correct? And it still animates… hmm, I guess I’m looking for a way for it to be auto open sans animation. My director buddy wants his demo reel to autoplay on site load, and if I set autoplay to true, the audio stutters a bit, stops, animation happens, then starts again. Make… sense?

I have this in the head, btw:

<script type="text/javascript"> $(document).ready(function(){ var acc2 = new ModernAccordion('accordion2'); acc2.showItem(0); }); </script>

I suppose I’m looking for a way to skip the first animation. If this isn’t possible, that’s cool—I’ll definitely find a use elsewhere for this snippet!

Posted 2 months ago
Author

DenonStudio DenonStudioreplied

It’s really meant to animate. To disable animation you have to code it yourself. Sorry

Posted 2 months ago

decisionmansays

Purchased

No probs! Hmm… I’ll have to figure this one out :)

Posted 2 months ago

kaesays

Purchased

hi,

i sent you a mail directly asking about being able to close the opened contents by clicking again. did you receive it?

Posted 18 days ago

$6

Prepaid customers
pay just $4 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Find Out More Price

You must sign in or sign up to purchase this item.

12345 ( 25 ratings )

Purchase 100 purchases

DenonStudio

DenonStudio

Exclusive Author Item was Featured Author was Featured Author had a Free File of the Month Referred at least one person Sold between 5 000 and 10 000 dollars Bought between 1 and 9 items Australia
File Types Included
JavaScript JS
Item Attributes
Created 2 July 09
JS Library jQuery 1.3
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Safari
ThemeForest Files Included N/A
JavaScript Files Included JavaScript JS
Collections that include this item