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

Multiple animations problem

I'm doing the Full-Page animation project, and I seem to have hit a wall. I can't get two different animations to be played by a single object. I believe my syntax is right (it's the same as in the video), but Mike will only do the move animation.

Here is where I link the animations

.mike {
    -webkit-animation: mike-move 6s 6s ease-out forwards, mike-float 3.2s infinite;
} 

here are my keyframes

@-webkit-keyframes mike-move {
    100% { left: 12%; }
}

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

Idk what to do, I am a sad panda

1 Answer

You've forgotten an - on the second webkit prefix.

@-webkit-keyframes mike-move {
    100% { left: 12%; }
}

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

I feel retarded. Haha thanks man, I should proofread a bit better.