Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to integrate an image gallery made with Roundabout with Fancybox?
    primarykey
    data
    text
    <p><br> I am trying to create a compact image gallery using the <a href="http://fredhq.com/projects/roundabout/" rel="nofollow">Roundabout</a> plugin. </p> <p>The carousel should rotate the thumbnails and, only for the image currently on focus, open the larger image in a <a href="http://fancybox.net/" rel="nofollow">Fancybox</a> popup when clicked. </p> <p>This is how the markup looks like:</p> <pre><code>&lt;ul class="image-gallery"&gt; &lt;li id="img-1"&gt;&lt;a href="images/picture1.jpg"&gt;&lt;img src="images/th2_picture1.jpg" alt="picture 1" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="img-2"&gt;&lt;a href="images/picture2.jpg"&gt;&lt;img src="images/th2_picture2.jpg" alt="picture 2" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="img-3"&gt;&lt;a href="images/picture3.jpg"&gt;&lt;img src="images/th2_picture3.jpg" alt="picture 3" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="img-4"&gt;&lt;a href="images/picture4.jpg"&gt;&lt;img src="images/th2_picture4.jpg" alt="picture 4" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="img-5"&gt;&lt;a href="images/picture5.jpg"&gt;&lt;img src="images/th2_picture5.jpg" alt="picture 5" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="img-6"&gt;&lt;a href="images/picture6.jpg"&gt;&lt;img src="images/th2_picture6.jpg" alt="picture 6" /&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>The problem is, if I try to activate both Roundabout and Fancybox on the images, clicking on them will trigger both the rotation and the popup, no matter on which image I clicked on. The popup, instead, should only be active for the image currently in focus.<br> I cannot unbind the click event on thumbnails, because this would disable the rotation too.. This is a <a href="http://www.allforweb.info/musei/musei/4_Museo%20Civico%20Amedeo%20Lia/" rel="nofollow">link to an example page</a> (the gallery is at the bottom of the page). </p> <p><strong>EDIT:</strong><br> Here's the jQuery that runs on page load:</p> <pre><code>$(function() { $('ul.image-gallery').roundabout({ duration: 1200 }); $('ul.image-gallery a').fancybox(); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload