jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 736 forks source link

JCarousel and Foundation 5 tabs #652

Closed senojeel closed 10 years ago

senojeel commented 10 years ago

I am having trouble using JCarousel in tabs. I have found in the forum where you said to call jcarousel in the show function of the tabs. I can't quite figure that out. That was also a few years back, so I was wondering if there has been an update way of accomplishing this?

My test site is http://parkchapel.fishhookcms.com. The tabs are below the big rotator image.

Any suggestions? Thanks!

jsor commented 10 years ago

According to http://foundation.zurb.com/docs/components/tabs.html#callbacks, this should work:

$('.tabs').on('toggled', function (event, tab) {
    $(tab).find('.jcarousel').jcarousel('reload');
});