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

Full Page Animation

I'm having some minor problems with the last challenge in a Full Page Animation section of CSS. I'm always getting the answer should check the animation name although I put the bg-move name in a code. Is there anyone with some advice how can I solve this and what I'm doing wrong. Thanks!

5 Answers

you need to paste the question and any code you have in here so we can see what your having trouble with.

Using the prefix for WebKit-based browsers, bind the 'bg-move' animation to the body selector. Give it an 8 second duration, then set it so that the final keyframe continues to apply after the animation sequence has completed.

Bummer! Make sure your animation name is correct. Preview Recheck work

/* Complete the challenge by writing CSS below */

body {

-webkit-animation: bg-move 8s forward;

}

.mike {

}

.boat {

-webkit-animation: rock-boat 3s ease infinite;

13

}

14

.steam {

15

-webkit-animation: steam 4s 2s infinite;

16

}

17

18

/* Keyframes - WebKit only

19

------------------------------------------ */

20

21

@-webkit-keyframes rock-boat {

22

50% { -webkit-transform: rotate(-5deg) translateY(-10px); }

23

}

24

@-webkit-keyframes steam {

25

40%,

26

60% { opacity: 1; }

27

100% { -webkit-transform: translate(-15%, -35%) rotateZ(20deg); }

28

}

29

@-webkit-keyframes bg-move {

30

0% { background-position: 100% -220px; }

31

100% { background-position: -350% -220px; }

32

}

33

@-webkit-keyframes mike-float {

34

50% { -webkit-transform: rotateZ(5deg) translateY(-5px); }

35

}

Using the prefix for WebKit-based browsers, bind the 'bg-move' animation to the body selector. Give it an 8 second duration, then set it so that the final keyframe continues to apply after the animation sequence has completed.

Bummer! Make sure your animation name is correct. Preview Recheck work

/* Complete the challenge by writing CSS below */

body {

-webkit-animation: bg-move 8s forward;

}

.mike {

}

.boat {

-webkit-animation: rock-boat 3s ease infinite;

}

.steam {

-webkit-animation: steam 4s 2s infinite;

}

/* Keyframes - WebKit only

------------------------------------------ */

@-webkit-keyframes rock-boat {

50% { -webkit-transform: rotate(-5deg) translateY(-10px); }

}

@-webkit-keyframes steam {

40%,

60% { opacity: 1; }

100% { -webkit-transform: translate(-15%, -35%) rotateZ(20deg); }

}

@-webkit-keyframes bg-move {

0% { background-position: 100% -220px; }

100% { background-position: -350% -220px; }

}

@-webkit-keyframes mike-float {

50% { -webkit-transform: rotateZ(5deg) translateY(-5px); }

}

I am having the same problem. Is this a bug or are we missing something? Thanks!

answer for challenge 1:

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

Hi! The bug is because is not forward without the "s" is forwards

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

Have a great day!