Time for action – building a Cycle2 carousel
Follow these steps to create a carousel with the Cycle2 plugin.
We'll get started, as we usually do, with using the HTML document and associated files and folders just like we did in Chapter 1, Designer, Meet jQuery. First up, we'll get the HTML markup for our carousel set up. Our HTML markup will be similar to the markup for the slideshow we set up in the previous example. We need a container
<div>
to hold the slideshow. Then, we also need individual<div>
elements inside the external container for each individual slide or image that will appear in our slideshow:<div class="cycle-slideshow"> <div class="slide"> <a href="http://en.wikipedia.org/wiki/Agua_Azul"> <img src="images/AguaAzul.jpg"> </a> </div> <div class="slide"> <a href="http://en.wikipedia.org/wiki/Burney_Falls"> <img src="images/BurneyFalls.jpg"> </a> </div> <div...