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 Unused CSS Stages Transitions and Transforms Transitions - WebKit Only

I just can't figure it out

The code challenge question is "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." I think the "prefix for webkit- based browsers" is throwing me off. I keep watching the video over and over and for some reason I cant get this one right. Help please

3 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Gary,

What have you tried so far in the challenge? The prefix itself is -webkit which relates to browsers such as Google Chrome and Safari, you can find a ton of threads on the forum about this challenge by visiting the below link.

https://teamtreehouse.com/forum/code-challenge:244

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

Nice link Chris, the answer to most questions on this topic are there.

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Gary,

The prefix for webkit browsers in css tells the webpage to run certain css code if the browser the webpage is being viewed in is webkit like Apple's Safari browser.

example:

border-radius: 20px;
-webkit-border-radius: 5px;

If not a webkit browser, this css will put a border radius of 20px, but if webkit then it will only do a border radius of 5px

Hope this helps

Thanks guys. As soon as you showed me "-webkit" the understanding just hit me. I was able to pass the code challenge. Once again thank you