Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Fancybox + Anythingslider image duplicate Re: Fancybox + Anythingslider image duplicate

#105944
Mottie
Member

The problem is because AnythingSlider clones the first and last slide to allow for a smooth transition between the last-to-first and first-to-last slides.

To fix this problem just change your fancybox selector to avoid the cloned slides:

$("#slider li:not(.cloned) .fancybox").fancybox({

Very nice site by the way! I just have a suggestion, since the hash tags seem out of place. Check out this demo on how to use AnythingSlider’s callbacks to change the hash tag. Then you can do other things with the hash tag to better point people to specific sections of your site :)