O'Reilly logo

jQuery for Designers : Beginner's Guide - Second Edition by Natalie MacLees

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – building a Cycle2 carousel

Follow these steps to create a carousel with the Cycle2 plugin.

  1. 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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required