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
kkswecpsyl
8,155 Points3D Transforms Image flip gets stuck
So in this tutorial you learn to flip the image completely over to see its backside.
I've noticed that depending on where you hover over the image sometimes the image does not completely flip (I am guessing because the cursor is perceived to be off the element?)
I increased the perspective to a pixel making it 1500px which slightly improved the problem but didn't get rid of it.
Anyone know how to fix this?
2 Answers
Fidel Torres
25,286 PointsHi David Brenecki I did have the same problem and the solution for me was to have a wrapper around the tag that you are rotating so you get the action on:
//CSS
.wrapper:hover .itemToRotate{
//apply styles here
-webkit-transform: rotateX(45deg);
-ms-transform: rotateX(45deg);
-o-transform: rotateX(45deg);
transform: rotateX(45deg);
}
HOPE this helps
kkswecpsyl
8,155 PointsYes! thankyou makes complete sense