Start learning with our library of video tutorials taught by experts. Get started

Create Animated Rollovers with jQuery
Illustration by John Hersey

Create Animated Rollovers with jQuery

with Chris Converse

Video: Previewing the project across browsers and devices

Hi! This is Chris Converse and this is a course I am creating some animated rollovers for your web site using jQuery. So I want to start by opening up the final project inside of the exercise files and take a look at what we are going to be creating throughout the course. In the first option we are going to be using jQuery to simply change elements that are already on the screen and we are actually going to use content from a previous course called Creating an Interactive Video Gallery as content for the course. Of course, you can use these same techniques in any web site targeting any HTML elements. Now in the video course we had captions that were over top of these thumbnails.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Create Animated Rollovers with jQuery
29m 26s Intermediate Oct 20, 2011

Viewers: in countries Watching now:

In this project-based course, author Chris Converse brings interactivity to a sample video gallery using the open-source JavaScript library jQuery. Working in a coding environment, Chris shows how to animate the captions and play icon, extend the thumbnails into filmstrips, and modify the filmstrip backgrounds to change on rollover using CSS.

Take a look at the finished web site here.

Topics include:
  • Updating the CSS to prepare for animated captions
  • Adding the jQuery hover statement
  • Setting a JavaScript timer
  • Animating the thumbnail filmstrip backgrounds
Subjects:
Web Web Design Projects
Software:
jQuery
Author:
Chris Converse

Previewing the project across browsers and devices

Hi! This is Chris Converse and this is a course I am creating some animated rollovers for your web site using jQuery. So I want to start by opening up the final project inside of the exercise files and take a look at what we are going to be creating throughout the course. In the first option we are going to be using jQuery to simply change elements that are already on the screen and we are actually going to use content from a previous course called Creating an Interactive Video Gallery as content for the course. Of course, you can use these same techniques in any web site targeting any HTML elements. Now in the video course we had captions that were over top of these thumbnails.

In this course we are going to take those captions and move them off the stage so that we can't see them over top of the individual thumbnails and when I roll my cursor inside of the thumbnails we are going to animate those captions up. We are also going to take the play icons, set their transparency to about 50%, and then we are going to bring the opacity of those up as well. In addition if captions have different heights we are actually going to move the play icon so that it overlaps the caption box by the same amount each time. So when I roll over the next thumbnail, which is a three line caption, you will notice the icon will move up as well.

If I roll into a caption that's only got one line of the copy the icon will move down again to make the relationship of the play icon and caption the same. Now in the second option we are going to change the background picture of the thumbnail as well. So let me open up option_ 2 inside of our browser. Now the first thing you will notice in the lower left is we have a timer that's constantly counting and if I roll my cursor inside of the thumbnails we will see that the background graphic of the thumbnail is changing in addition to the animation of the play icon and the animation of the caption.

Now as I roll into each one of these we will be switching the background graphics using CSS changes from jQuery and this will give us a little bit of a more dynamic feel for the individual keyframes for the video. Now since we are standardizing on jQuery here we do get the same user experience across different platforms. If we move over here into Windows 7 running IE9 I am going to take option_2 and just drag that into a browser and take a look at the same user experience running on Windows in IE9.

Next, we will move over to Windows XP. Now over in XP we are going to get the same user experience inside of IE7 and 8 as well. However, there's one thing that we can't support inside of 7 and 8 and that is setting transparency on an already semi-transparent PNG file. So one thing you will notice when I roll into each one of these icons is once the icon has some transparency applied to it through CSS and through jQuery we will get this black halo that shows around the outside of the PNG file. When I roll away the PNG file will pick up its semi-transparency, but we won't be able to get rid of that black halo.

Now if you do want to have this user experience consistent for IE7 and 8 as well during the course I'll show you the places in the JavaScript where we can make this change so that we are not setting opacity for the play icons. So with that I hope this course sounds interesting and if so let's get started with the first movie.

There are currently no FAQs about Create Animated Rollovers with jQuery.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create Animated Rollovers with jQuery.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.