cycle2
cycle2 copied to clipboard
Open links from images carousel
I use this carousel:
prev
next
<div class="azz"
data-cycle-fx="carousel"
data-cycle-timeout="0"
data-cycle-carousel-visible="3"
data-cycle-carousel-fluid="true"
data-cycle-prev=".prev"
data-cycle-next=".next"
data-cycle-log="false"
data-cycle-slides="> a > img"
>
<a class="fancybox" rel="carousel" href="http://placehold.it/130x130">
<img alt="" src="http://placehold.it/130x130" />
</a>
<a class="fancybox" rel="carousel" href="http://placehold.it/130x130">
<img alt="" src="http://placehold.it/130x130/ff0000" />
</a>
<a class="fancybox" rel="carousel" href="http://placehold.it/130x130">
<img alt="" src="http://placehold.it/130x130/eeeeee" />
</a>
<a class="fancybox" rel="carousel" href="http://placehold.it/130x130">
<img alt="" src="http://placehold.it/130x130" />
</a>
<a class="fancybox" rel="carousel" href="http://placehold.it/130x130">
<img alt="" src="http://placehold.it/130x130/333333" />
</a>
<a class="fancybox" rel="carousel" href="http://placehold.it/130x130">
<img alt="" src="http://placehold.it/130x130/bbbbbb" />
</a>
</div>
</div>
Why the links href don't work?
Thank you
Try changing the slide selector:
data-cycle-slides="> a"
I try and the fancybox works but the images lost the grid alignment. I also try with a ul list but nothing.
Have you experimented with your css? For example, display:block for those anchors?
Thanks, this topic helps me.
how to pop up fancybox when click on anchor?
Here is my sample which does NOT work: http://codepen.io/cenkkizildag/pen/rLezog/