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 trialJennifer James
6,430 PointsArrrgh! whats wrong with my code???
.gear-icon {
transition: transform .4s ease-out;
transform-origin: 50% 50%;
}
.gear:hover .gear-icon {
transform: rotate(45deg) scale(1:3);
}
however the gear is refusing to do anything! its driving me crazy!! What have I missed??
p.s. I'm using chrome
2 Answers
Jennifer James
6,430 PointsI found it - the scale should be 1.3 not 1:3, my fault for only listening and not watching i think!
Mark Mangunda
16,652 PointsI stand to be corrected, but I have observed that Guil in the video obmitted to included center in his transform-origin code for the icon to rotate and evenly scale from its center point.
.gear-icon { transition: transform .4s ease-out; transform-origin: center 50px 50px; }