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!
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
Kelvin Bruce-Smith
413 PointsCan't get animation to work - Keyframe Rules and Animation Properties
I am probably missing something obvious, but when I type the code I cannot get the animation to play. I just get the red bar @ 100%.
I am using the latest version of chrome: Version 28.0.1500.95 m
Heres my code:
.prog-bar { height: 60px; border-radius: 5px; background: -webkit-repeating-linear-gradient(-45deg, rgba(255,255,255,.1), rgba(255,255,255,0) 12px), -webkit-linear-gradient(#F5A8A8, #F08080);
-webkit-animation-name:slide;
-webkit-animation-duration:2s;
}
/* Keyframes ------------------------------------------ */
@-webkit-keyframe slide { from{width: 0%;} to{width:100%;} }
2 Answers

Kelvin Bruce-Smith
413 PointsFixed, sorry :-)

Chris Turner
9,710 PointsHow'd you fix it? I'm having the same problem. I've checked my code against what Guil has in the video and I cannot get the animation to run. I'm using Chrome, Version 33.0.1750.154 m.