- In our previous videos, we've been creating animations…that played regardless of user input…but user input can be some valuable information…that we can use to inform our animations.…In this tutorial, we'll create an animation…that place only on hover using the animation-play-state.…Let's start by looking at the HTML behind this example.…Our HTML is pretty basic.…We have a div of the class of sticker…that we're going to assign a background image…of our sticker shape too.…Then we have some text overlaid…over the sticker that says new.…In our CSS, we have some basic styles…to assign the background image…and width and height to our sticker…and then if you property style our text.…
So let's get started to finding…some animation for our sticker.…For this example, we're going to have…our sticker image rotate around in place.…So we'll be going from a rotation of zero or no rotation…to a rotation of one turn.…So I'll write out some keyframes for that.…I'm going to name this animation spin…since it's making this sticker shape spin.…
Web designer Val Head introduces CSS transforms and transitions—the foundation of most CSS animations—and shows how to keyframe simple animations and adjust their timing, fill, and direction. She also covers looping and chaining animations, animating HTML and SVG elements, and optimizing animation performance, and introduces the best tools and use cases for CSS animation. Start watching to get your brand in motion.
- Using CSS transforms and transitions
- Working with animation-delay and animation-fill-mode
- Timing and easing CSS animations
- Animating elements in place
- Animating sprite images
- Animating CSS transforms and transitions
- Chaining multiple animations
- Animating SVG images
- Creating high-performance CSS animations
Skill Level Intermediate
1. Overview of CSS Transitions and Transforms
2. Understanding CSS Animations
3. CSS Animation Building Blocks
4. Applying CSS Animations to SVG
5. Performance, Browser Support, and Fallbacks
6. Tools for Creating CSS Animations
- 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.