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 trialShannon Yeh
8,987 PointsCSS Animations Last Challenge
I have no idea what to do here since I tried to bind using the -webkit-animation: bg-move
here is the question:
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.
here is the code provided:
body {
}
.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); }
}
9 Answers
Shannon Yeh
8,987 Pointsnvm all fixed =D
Guil Hernandez
Treehouse TeacherHey Bernardo Bonança,
Looks like you wrote -webkik-animation instead of -webkit-animation
Bernardo Bonança
10,773 PointsOh man... now I'm just embarassed. Thank you.
I'll be a better student from now on, I promise hahaha
Awkward Guil Hernandez video outro (You know... that gesture you do. I lol'ed the first time.)
Guil Hernandez
Treehouse TeacherHaha! No worries, Bernardo Bonança, it happens to all of us. :)
Davor Budimir
9,206 Pointssolution:
body { animation: bg-move 8s infinite; -webkit-animation: bg-move 8s infinite; animation-fill-mode:forwards; -webkit-animation-fill-mode:forwards; }
Marc Sanchez
20,039 PointsAndras, if you're still having this issue, try using the short-hand method. -webkit-animation: bg-move 8s infinite forwards; It worked for me.
Hope that helps.
Bernardo Bonança
10,773 PointsI'm having this problem.
It tells me the animation name is incorrect.
"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."
/* Complete the challenge by writing CSS below */
body {
-webkik-animation: bg-move 8s forwards;
}
.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); }
}
Bernardo Bonança
10,773 PointsWell I copied and pasted the same exact code from another forum post and it seems to work now.
No idea what was that all about.
Shannon Yeh
8,987 Pointsfor some reason the -webkit-animation-fill-mode: is grayed out.... i dont know what to do
body {
-webkit-animation: bg-move 8s infinite;
-webkit-animation-fill-mode: foward;
)
Shannon Yeh
8,987 Pointskeeps saying my fill mode isnt correct?
Guil Hernandez
Treehouse TeacherHi Shannon Yeh,
If you're still having issues with the fill-mode, it's because it needs to be forwards
. You currently have it as foward
.
Hope this helps.
Gergely Marton
27,180 Pointsi chedk it double checked it infinite check it, fill mode is grayed out dosen`t work .... body { -webkit-animation: bg-move 8s infinite; animation-fill-mode:forwards }
Gergely Marton
27,180 Pointsi mean -webkit-animation: bg-move 8s infinite; -webkit-animation-fill-mode: forwards
Eric Washington
iOS Development with Swift Techdegree Student 21,884 PointsEric Washington
iOS Development with Swift Techdegree Student 21,884 PointsOk great!! :-)