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

Sajan Miah
Sajan Miah
13,827 Points

I'm struggling to complete this objective, can somebody help and tell me where I am going wrong?

Here is my css:

.box {
  width: 25%;
    height: 200px;
    border-radius: 15px;
    background: #4682B4;

  transition-property: background;
    transition-duration: 2s;
    transition-timing-function: cubic-bezier(.5, -.5, .3, 1.3), linear;
    transition-delay: 1s;
 }

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

2 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Hi Sajan Miah.

  • The challenge is asking for the webkit-prefixed versions of the CSS properties: -webkit-transition-property, -webkit-transition-duration, -webkit-transition-timing-function, -webkit-transition-delay

  • You're using the background property for the transition-property. It should be border-radius

  • For the timing function, leave out the cubic bezier. It should be a regular linear timing function: -webkit-transition-timing-function: linear;

Sajan Miah
Sajan Miah
13,827 Points

Thankyou so much for getting back to me, I can see exactly where I have gone wrong. I've completed the objective now thanks to your help :)