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 trialAshley Scott
6,426 PointsHelp!!
My question says Using the prefix for WebKit-based browsers, create a property that will bind the keyframe sequence below to the .prog-bar selector. I need help and thank you in advanced.
4 Answers
Andrea Zupanc
Courses Plus Student 2,483 PointsI had the same problem and finally figured it out - it is :
.prog-bar { -webkit-animation: slide 1s ease infinite; }
you call the animation with webkit-animation: and the animation name is slide, which you is @-webkit-keyframes slide => and that means you need to use slide as your animation name.
Sorry I'm really bad in explaining it but I hope it helps....
Richard Duncan
5,568 PointsThe below code shows you how to create a keyframes animation with the webkit prefix and then how to call that animation in the class .prog-bar.
The syntax is @-webkit-keyframes, followed by the animation name. The animation call in prog-bar is shorthand meaning it will run the animation "myAnimation" over the duration of 1 second in a linear transition an infinite number of times.
All being well you can adapt this to your needs.
@-webkit-keyframes myAnimation {
0% {
/* Something here */
}
100% {
/* Something here */
}
}
.prog-bar {
animation: myAnimation 1s linear infinite;
}
Ashley Scott
6,426 PointsI am still confused
Caroline Jillings
10,491 Points-webkit-animation-name: slide;
Ashley Scott
6,426 Pointsi still don't understand
Richard Duncan
5,568 PointsYou are basically defining an animation by name which you call later on the class.
Ashley Scott
6,426 Pointshow do i do that
Richard Duncan
5,568 PointsWith @-webkit-keyframes shown in my answer.
Ashley Scott
6,426 PointsWhere do i put the animation name?
Brenna Leker
7,596 PointsThe animation name goes after the declaration -webkit-animation: In this example "slide" is the name of the animation so it would be:
.prog-bar { -webkit-animation:slide; }
Ashley Scott
6,426 PointsAshley Scott
6,426 Pointsthank you and it did make sense