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 trialKasper Rubin
559 PointsFirst challence - css transitions
I have watched the second video about transitions and created a transition in 1 line, which works perfectly on mousein and out. But its not correct.
/* Complete the challenge by writing CSS below */
.box { border-radius: 15px; background: #4682B4; transition:border-radius 2s, linear 1s;
}
.box:hover { background: #F08080; border-radius: 50%;
}
1 Answer
Shamime Boodhoo
19,054 PointsIt's because the code challenge is asking for the Webkit prefix which you missed out. Also, there should be no comma after the transition time.
.box {
border-radius: 15px;
background: #4682B4;
-webkit-transition: border-radius 2s linear 1s;
}
.box:hover {
background: #F08080;
border-radius: 50%;
}