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 trialDavid Day
Courses Plus Student 13,837 Pointsbg-move animation
My bg-move animation is not working in Google Chrome. Below is my css. Not too sure what is going wrong.
/* Animations - WebKit only
------------------------------------------ */
body {
-webkit-animation: bg-move 8s ease-out;
}
.boat {
-webkit-animation: rock-boat 3s ease-in-out infinite;
}
.boat::after {
-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% -460px; }
100% { background-position: -350% -460px; }
}
3 Answers
David Day
Courses Plus Student 13,837 PointsFixed it. Careless mistake, forgot a }
Gary Mann
8,639 PointsAre you talking about the challenge exercise or about you doing the animation on your own?
David Day
Courses Plus Student 13,837 PointsGary, thanks for the response. I was just following along with the video and adding my own code to the project files. I learn best if I work with them as the video moves forward. However, I figured it out, I made a careless mistake and left out a } in my steam keyframe. Thanks for your willingness to help.