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 trialstevencooper
5,755 PointsI'm having difficulty with CSS Transitions
I am supposed to: Use the prefix for webkit-based browsers, create a transition for the border radius property of .box. Give the transition a duration of 2 sec, a delay of 1 sec, & a timing function that maintains linear motion.
here is the code i wrote, but something is wrong with it because I keep getting, "Bummer, make sure your transition is correct."
.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%;
}
When I preview the work, there is no duration, & no delay in either the change of colors or the transition, and I've gone over the video & transcript and still don't see my error.
James Mejia
7,726 PointsAh, didn't see that under the 'Ask to Answer' thing. I don't post much on the forums. Just happy to help. Thanks for pointing that out :)
Jason Anello
Courses Plus Student 94,610 PointsHi James,
Why don't you go ahead and re-post as an answer instead of a comment. Then Steven will have the option of awarding "best answer". It makes the forums work better.
1 Answer
James Mejia
7,726 Points@Jason Anello, ok.
You need to add the css property that you want to transition. So in your case it would be:
-webkit-transition-property: border-radius;
Or border would probably work as well.
stevencooper
5,755 Pointsstevencooper
5,755 Points@James Mejia...
i wish you had put your response in as an answer, 'cause it worked like a charm, and I would like to give you a 'best answer' check.