bennyhosays
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.
bennyhosays
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.
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.
decisionmansays
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!
decisionmansays
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!
kaesays
hi,
i sent you a mail directly asking about being able to close the opened contents by clicking again. did you receive it?
35comments