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 Transitions and Transforms Transitions - WebKit Only

Benjamin Leveau
Benjamin Leveau
4,281 Points

Why is this not working in the webkit transform challenge: -webkit-transition: border-radius 2s 1s linear

I have tried shorthand and long-hand version but nothing seems to work. It works in the preview but it wont allow me to pass the challenge

4 Answers

This should be your code:

.box {
    border-radius: 15px;
    background: #4682B4;
  -webkit-transition: border-radius 2s linear 1s;
 }

.box:hover {
    background: #F08080;
    border-radius: 50%;
}

You had the delay (1s) property before the timing function (linear) property.

Can we see your code?

Benjamin Leveau
Benjamin Leveau
4,281 Points

.box { border-radius: 15px; background: #4682B4; }

.box:hover { background: #F08080; border-radius: 50%; -webkit-transition: border-radius 2s 1s linear; }

Benjamin Leveau
Benjamin Leveau
4,281 Points

Oh ! Great. Thanks a lot!