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 – creating zoomable images


Perform the following steps to create zoomable images on your HTML pages:

  1. We'll get started by creating a basic HTML document and the associated files and folders just like we did in Chapter 1, Designer, Meet jQuery. You'll need two sizes of the same image—I've found that if the smaller image is approximately one-third the size of the larger image, the zoom functionality works very well. Inside the body of the HTML document, we'll add an image and some information about the image, as follows:

    <article>
      <figure>
        <img src="images/aster.jpg" height="1004" width="1024" alt="Aster">
      </figure>
      <div class="flower-info">
        <h2>Aster</h2>
        <p>Aster is a genus of flowering plants in the family Asteraceae. Its circumscription has been narrowed, and it now encompasses around 180 species, all but one of which are restricted to Eurasia; many species formerly in Aster are now in other genera of the tribe...