Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Unused CSS Stages Transitions and Transforms Transitions - WebKit Only

Cedric Bell
Cedric Bell
10,706 Points

Am I doing this correctly

is this correct...I've tried several ways and I keep receiving Bummer. -webkit-transition-duration: 2s; -webkit-transition-delay: 1s; -webkit-transition-timing-function: linear;

4 Answers

Sometimes the best way to type it out is on a single line -- if for no other reason than to see you've got everything in order like so:

.element {
transition: <property> <duration> <timing-function> <delay>;
}

Also, as Andrew Corcoran mentioned, remember to specify the property (like 'border-radius'). Or if you like you can cover ALL of the properties with the aptly named all.

.element {
-webkit-transition: all 2s linear 1s;
}

That sets the stage for the transition. But one last piece to add -- the property change of the element. For example, to trigger border-radius and background-color to change on mouse over we set like so:

.element:hover {
border-radius: 20px;
background-color: rgba(100,0,0,0.8);
}

Cheers

Chris Dziewa
Chris Dziewa
17,781 Points

Could you please post the link to the video here? Use the Markdown Cheatsheet if necessary. It's possible that the challenge is asking for the single line code but I have no way of knowing without seeing the challenge.

Andrew Corcoran
Andrew Corcoran
20,552 Points

Hi Cedric,

Don't forget to designate which CSS property you are applying the transition to. In this case it would be

-webkit-transition-property: border-radius;
garymiskimmons
garymiskimmons
21,664 Points

You need to reference the property your transitioning for example color etc