Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Adam Ford
Courses Plus Student 6,404 Pointscode challenge full page css animation part 2 the code editor is telling me to check my animation name is correct this
the code editor is telling me to check my animation name my css looks like this
.body {
-webkit-animation: bg-move 8s infinite;
}
what's wrong with it please I can't see it at all
1 Answer
Dino Paškvan
Courses Plus Student 44,108 PointsThe last keyframe of the animation has to stay after the animation is done, so you don't want the animation to repeat infinitely.
Replace infinite with forwards.
Adam Ford
Courses Plus Student 6,404 PointsAdam Ford
Courses Plus Student 6,404 Pointsthanks for that, but it didn't work. it's still telling me to check my animation name is correct
Dino Paškvan
Courses Plus Student 44,108 PointsDino Paškvan
Courses Plus Student 44,108 PointsOh, I just noticed, you don't need
.in front ofbody. That's a type selector, not a class selector.Adam Ford
Courses Plus Student 6,404 PointsAdam Ford
Courses Plus Student 6,404 Pointsmint - that worked thanks