Book Image

jQuery for Designers Beginner's Guide Second Edition

By : Natalie Maclees
Book Image

jQuery for Designers Beginner's Guide Second Edition

By: Natalie Maclees

Overview of this book

Table of Contents (21 chapters)
jQuery for Designers Beginner's Guide Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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>
      <div class="slide">
        <a href="http://en.wikipedia.org/wiki/Burney_Falls">
          <img src="images/BurneyFalls.jpg">
        </a>
      </div>
      <div...