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 3D Transforms: Part 1

Noah Laurent
Noah Laurent
3,080 Points

My rotation isn't working, it just squeezes the image, does not rotate it. Why?

My code:

`body { -webkit-prespective: 800px; }

.wrap { transition: -webkit-transform 1s ease-in; }

.wrap div { position: absolute; }

.side-a { z-index: 100; }

.side-b {

}

.wrap:hover { -webkit-transform: rotateX(45deg); } `

2 Answers

Christopher Crouch
Christopher Crouch
11,992 Points

I think there's a typo in your code , try body { -webkit-perspective: 800px; } instead of body { -webkit-prespective: 800px; }

Noah Laurent
Noah Laurent
3,080 Points

It worked. Thanks Christopher