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 trialCedric Bell
10,706 PointsAm 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
Eric Shinn
10,045 PointsSometimes 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
17,781 PointsCould 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
20,552 PointsHi 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
21,664 PointsYou need to reference the property your transitioning for example color etc