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

Transition test

I am struggling with the second test on transitions. It is asking me 'Using the prefix for WebKit-based browsers, create a transition for the border-radius property of '.box'. Give the transition a duration of 2 seconds, a delay of 1 second, and a timing function that maintains a linear motion.

My coding is:

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

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

Keeps saying check work. Can someone help me?

Cheers

2 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Patrick McDermott,

You're super close. All that's missing are the vendor prefixes it asks you to include before each transition property.

Where will I find these, or should I just watch the video again and get them from there?

Guil Hernandez
Guil Hernandez
Treehouse Teacher

It's the -webkit- prefix used in the first video. We included it right before the transition-duration property at the end, so that it can work in older WebKit-based browsers.

I'll be updating this soon, so that you won't need to add the prefix in the code challenge. :)

DID IT :D

Im getting closer I feel but not sure where Im going wrong

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

Do I need to add anymore to the prefixes?

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Hey Patrick McDermott,

The 3 properties you just added are not necessary for this code challenge. Stick with your original code, then simply add "-webkit-" in front of each transition property defined. Hope this helps.