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

CSS Unused CSS Stages CSS Animations Full-Page Animation Project 2: WebKit Only

Kayla Davis
Kayla Davis
4,668 Points

bg-move - Not correct? What?

Hi, I'm working on the code challenge for the Full Page Animation, at the step to write the CSS to apply the animation to the body background. Here is the code the challenge provides:

@-webkit-keyframes bg-move { 0% { background-position: 100% -220px; } 100% { background-position: -350% -220px; } }

And here is the code (I think) I'm supposed to write in here:

body { -webkit-animation: bg-move 8s forward; }

I reviewed the video on this to ensure that my code looked identical to what was written in the video, and the challenge tells me to check to be sure my animation name is correct - bg-move.

I'm a bit confused why it kicks this back at me, since it appears to be very correct to me, but I can't get it to play in my chrome browser. Any advice? Thanks!

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Kayla;

You are very close. The value for the animation-fill-mode property should be forwards not forward.

body {
    -webkit-animation: bg-move 8s forwards;
}

You can read more about the animation-fill-mode here and what values it takes and what they do.

Happy coding,

Ken

Kayla Davis
Kayla Davis
4,668 Points

Aw snap. The worst bug is when one character throws the whole thing off. Thanks!