Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
In this video, you will complete the badge animation by creating the star animation keyframes.
Update
If the rotation appears off-center, apply transform-box: fill-box
to your SVG, like so:
.star {
animation: turn 1.1s .2s ease-out backwards;
transform-box: fill-box;
}
You can learn more about transform-box
on MDN.
Quick Reference
Related Videos
Browser Support
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up