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 trialJessica Killeen
2,043 PointsTrouble with Transformation - wrong trans property?
hello, I am in the challenge for transitions and transforms.
I am trying to (using the prefix for webkit based transitions) create a transformation for the border-radius property but it keeps telling me to check my transformation property....I tried it with 'background' instead of 'border-radius,' I've tried all sorts of combinations within .box and .box:hover...now getting frustrated :) thanks! /* Complete the challenge by writing CSS below */
.box { border-radius: 15px; background: #4682B4; }
.box:hover { background: #F08080; border-radius: 50%; transition-property: border-radius; transition-duration: 2s; transition-timing-function: linear; transition-delay: 1s;
<!DOCTYPE html>
<html>
<head>
<title>CSS Transitions</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="box"></div>
</body>
</html>
/* Complete the challenge by writing CSS below */
.box {
border-radius: 15px;
background: #4682B4;
}
.box:hover {
background: #F08080;
border-radius: 50%;
transition-property: border-radius;
transition-duration: 2s;
transition-timing-function: linear;
transition-delay: 1s;
}
1 Answer
Jessica Killeen
2,043 PointsOK nevermind...I thought the mention of webkit meant all good, it meant opposite--call out vendor prefix. found help from other questions and answers on same topic.
thanks!