Time for action – creating an animated news ticker

Follow these steps to set up a vertical news listing:

  1. First, up, we'll set up a basic HTML file and associated files and folders like we did in Chapter 1, Designer, Meet jQuery. In the body of the HTML document, create an unordered list of news items. Each news item will have an image and a div that contains a headline and an excerpt:
    <ul id="news-carousel"> <li> <img src="images/thumbs/Switzerland.png" alt="Switzerland"/> <div class="info"> <h4>Switzerland</h4> <p>Switzerland, officially the Swiss Confederation, is a federal republic consisting of 26 cantons, with Bern as the seat of the federal authorities</p> </div> </li> <li> <img src="images/thumbs/CostaRica.png" alt="Costa Rica"/> <div class="info"> ...

Get jQuery for Designers Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.