- [Voiceover] Okay, let's walk through my solution to…the cart challenge.…Let's see how it looks first.…The items bounce over,…fade out,…shrink,…when they're added to the cart,…we get a little message.…And they're ending up a little lower on the cart,…targeting this 'Your items go here!'…Okay, let's take a look at the code.…So the first thing that we'll look at…is the animation of the ghosted image.…So I added an opacity of zero…and then a width of 30 pixels.…
You could also specify this as simply a number.…I chose to use 30 pixels…to make it a little more explicit.…And so we're going from the original…opacity of one down to zero…as the ghosted image moves over…and it's shrinking down to 30 pixels.…So it basically disappears.…You could also of course…go to a width of zero or whatever you like.…I just happen to like the way it looked this way.…Now let's look at the targeting.…That's changed up here in the target coordinates.…Before, we were just using the cart target.…I still kept this variable,…but changed where we were getting the offset from…
- When to use jQuery
- Installing jQuery
- Setting up functions
- Using jQuery classes
- Modifying the DOM
- Event binding
- Reading and setting values
- Integrating plugins
- Animating websites with jQuery
Skill Level Intermediate
1. jQuery Introduction
2. Essential Concepts
3. It's Easier in jQuery
4. Integrate a Plugin
- Mark as unwatched
- Mark all as unwatched
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.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.