.red.box {
background-color: red;
transform: perspective( 600px ) rotateY( 45deg );
}
Then HTML:
<div class="box red"></div>
from http://desandro.github.com/3dtransforms/docs/perspective.html
More Related Contents:
- Make CSS3 triangle with linear gradient
- Line before and after title over image [duplicate]
- How to apply multiple transforms in CSS?
- CSS Only Pie Chart – How to add spacing/padding between slices?
- Prevent flicker on webkit-transition of webkit-transform [duplicate]
- Why does order of transforms matter? rotate/scale doesn’t give the same result as scale/rotate
- Control the dashed border stroke length and distance between strokes
- CSS transparent curved shape with two rounded sides
- How to draw a circle with text in the middle?
- Hover effect : expand bottom border
- Outlining and partially filling an SVG Shape
- Hexagon shape with CSS3
- Is a concave border radius possible?
- Align text on slanted line
- Spin or rotate an image on hover
- background image, linear gradient jagged edged result needs to be smooth edged
- How can I apply multiple transform declarations to one element?
- How can I use CSS3 transform on a span?
- How to make a circle around content using CSS?
- Blocky gradient effect in CSS3
- Border within border CSS
- Skewed Borders on a Div
- Half hexagon shape with one element
- CSS3 transform on click using pure CSS
- Flip a 3D card with CSS
- How to create a radial menu in CSS?
- Arrow Box with CSS
- CSS Transform with element resizing
- Rounded side, not rounded corners
- Creating a droplet like border effect in css