Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,900 courses, including more Web and personalized recommendations.Start Your Free Trial Now
- View Offline
- Exporting graphics from Photoshop
- Positioning elements with CSS
- Using the Roundabout plug-in
- Activating the carousel callback
- Detecting the image in focus
- Adding the final touches
Skill Level Intermediate
- [Voiceover] Hi, this is Chris Converse and this is a course on creating an interactive, rotating carousel for your website. I wanna first start by showing the final project we're gonna be creating. Inside of the exercise files, there's a folder called Final Project. I wanna open the index that HTML file up in a browser to show you the final project we'll be creating. Now in this carousel, we have a series of teapots. When I click on the individual items in the carousel, they will rotate to the front. You'll also notice a caption underneath. What we'll do with the caption is fade the caption out, grow the stem under the leaves, and then fade the caption back in.
We also have these buttons on the right and left that will also rotate the carousel. Now we're going to be creating this project using jQuery. This is gonna give us the advantage of being able to code the project once and have it work on a series of devices and platforms. So here we are over in IE9, running in Windows 7, and getting the exact same user experience. And you'll also be able to take your project over to individual devices. So in this case, let's load the same exact project running in an iPad and again get the same user experience running on a device, as well.
So to illustrate how we are going to create the carousel, I wanna bring up a sketch. We're gonna be bringing in a series of images that we're going to put into an HTML container, and then hi-def through CSS. Then we're gonna run a jQuery plug-in called Roundabout, which is gonna take all of these images and place them into a div container that we create with CSS and HTML and put these items into a carousel. Each one of the items will become clickable, so we can click on them and have them come to the front. And then we're gonna add some custom functions that will allow us to create our right and left buttons to rotate the carousel. And also create a caption area that will relate to the item to the carousel that's in the forefront.
So I hope this course sounds interesting to you, and if so, let's get started with the first movie.