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 Unused CSS Stages CSS Animations Keyframe Rules and Animation Properties: WebKit Only

stuck on CSS animation

When checking, I get 'Make sure your duration is set to 2 seconds.'

/* Complete the challenge by writing CSS below */

'''CSS .prog-bar { -webkit-animation-name: slide; -webkit-animaton-duration: 2s; }

/* Keyframes ------------------------------------------ */

@-webkit-keyframes slide { 0% { width: 0%; } 30%, 60% { width: 50%; } 70% { width: 80%; } 100% { width: 100%; } } '''

2 Answers

Khurram Muslim
Khurram Muslim
12,391 Points

it just you add 2s after slide you don't need to use -webkit command again as you can research about that also as far as in the related video, we use duration after slide.

Hope that helps?

thanks for your help