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: Part 2

I do not understand where I am doing mistake in the code

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

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

4 Answers

Leonardo Constantino Oliveira
Leonardo Constantino Oliveira
19,185 Points

It is working, it's just taking too long :) Wait with your cursor over it and you'll see it working:

<html>
  <head>
    <style>
      .box {
        border-radius: 15px;
        background: #4682B4;
        -webkit-transition-duration: 2s;
        -webkit-transition-delay: 1s;
        -webkit-transition-timing-function: linear;
      }
      .box:hover {
        background: #F08080;
        border-radius: 50%;
      }
    </style>
  </head>

  <body>
    <div style="width: 200px; height: 200px" class="box"></div>
  </body>
</html>

Thanks Leonardo Constantino Oliveira, still I have the problem and getting the following message in red ink.

Bummer! Make sure your transition property is correct.

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi palash chandra sarker,

You're super close. It looks like you're missing one property that will transition border-radius. I cover it at the 2:13 mark of this video.

Hope this helps. :)

Zachary Martz
Zachary Martz
2,487 Points

I'm having the same problem that Palash is having. I have -webkit-transition-property: border-radius; within the box-hover immediately following the border-radius property, and I'm still getting an error message. It doesn't seem to like the border-radius property because that word is in blue.