Home › Forums › JavaScript › Can you improve my slideshow? › Re: Can you improve my slideshow?
June 21, 2013 at 10:13 am
#139752
Member
Sure, I’ll clarify. I was the navigation controls to work like an accordion. It sort of does now, but the following code prevents it from working exactly like an accordion:
$(".intro span").animate({
"height":"22px"
}, 500, 'easeInOutQuart');
When a new panel is clicked on, all the panels are set to 22px momentarily leaving a space of about 166px bellow the panels. Next, the panel that was clicked on is set to 188px. The code that does this is here:
$(this).animate({
"height":"188px"
}, 500, 'easeOutCirc');
These action execute separately, which I believe is the problem.