Home › Forums › JavaScript › Fancybox + Anythingslider image duplicate › Re: Fancybox + Anythingslider image duplicate
July 12, 2012 at 10:41 am
#105944
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 :)