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!
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
John Lukacs
26,210 Points3d transforms:transition backside of picture
I can't get the backside of the picture show when I rotate it.
.wrap {
position:absolute;
background-size: 600px;
width: 600px;
height:600px;
transition: 1s ease-in;
-webkit-transform:style: preserve-3d;
}
.wrap:hover{
-webkit-transform: rotateY(180deg);
}
.side-a {
background: url('io.jpg') no-repeat;
background-size: 600px;
z-index: 100;
}
.wrap div {
background-size: 600px;
width:100%;
height:100%;
-webkit-backface-visibility:hidden;
position:absolute;
}
.side-b {
background: url('ioo.jpg') no-repeat;
}
if you can help with this you are a true master
2 Answers

Nicholas Green
26,327 PointsLate to the question but it looks like the transform style has a semicolon when it should be a dash.
Current: -webkit-transform:style:
Try: -webkit-transform-style:

John Lukacs
26,210 Points.wrap {
position:absolute;
background-size: 600px;
width: 600px;
height:600px;
transition: 1s ease-in;
-webkit-transform:style: preserve-3d;
}
.wrap:hover{
-webkit-transform: rotateY(180deg);
}
.side-a {
background: url('io.jpg') no-repeat;
background-size: 600px;
z-index: 100;
}
.wrap div {
background-size: 600px;
width:100%;
height:100%;
-webkit-backface-visibility:hidden;
position:absolute;
}
.side-b {
background: url('ioo.jpg') no-repeat;
}