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

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