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 trialMarston Gould
PHP Development Techdegree Student 17,314 PointsTransition exercise
I think I have the right answer and it appears to work in preview, but I'm being scored as wrong.
Goal - use webkit to create a transition of the border radius with duration of 2s, delay of 1s in a linear format to the .box div on hover
.box {
border-radius: 15px;
background: #4682B4;
}
.box:hover {
background: #F08080;
border-radius: 50%;
-webkit-transition: border-radius 2s linear 1s;
transition: border-radius 2s linear 1s;
}
The last two lines in the .box:hover are what I have added.
2 Answers
Michael Hicks
24,208 PointsJason's correct. Adding it to the .box rule allows the transition to execute backwards smoothly instead of snapping back.
Jason Anello
Courses Plus Student 94,610 PointsHi Marston,
You want to add the transition in the .box
rule. Not in the :hover
rule.