I was working on a prototype for a library page with elements in a grid, and I want to include a 3D style in the guidance of these elements.
I study the methods used in the following articles:
The prototype that I am currently partially executing does what I'm trying to execute: http://jsfiddle.net/fmpeyton/8cs35/ (Note: I'm testing the prototype in Chrome just now)
.resources{
-webkit-perspective: 1000px;
}
.resource{
display: inline-block;
vertical-align: top;
position: relative;
margin: 10px;
transition: all .5s;
height: 259px;
-webkit-transform-style: preserve-3d;
}
.resource img{
width: 200px;
-webkit-transform: translate3d(0,0,20px);
}
.resource:hover{
-webkit-transform: rotate3d(0, 1, 0, 40deg);
}
.resource .title{
background: #999;
display: block;
position: absolute;
height: 259px;
-webkit-transform: rotate3d(0,1,0,-90deg);
width: 40px;
left: -20px;
}
.resource .title p{
font-size: 15px;
line-height: 40px;
padding-right: 10px;
text-align: right;
width: 240px;
height: 40px;
-webkit-transform-origin: 0 0;
-webkit-transform: rotate(90deg) translateY(-40px);
}
, , perspective. perspective .resources, 3- 3- , , . .resource, .resource.
perspective .resource, . , (.title) ( ), . , :

.resource:

: .resource , , ?
, , , , / .