perspective-origin

Sets the vanishing point position for 3D transforms. poc is the default; moving the vanishing point changes the viewpoint of the 3D effect.

Class List

ClassCSSDescription
pocperspective-origin: centercenter vanishing point (default)
potperspective-origin: toptop vanishing point
pobperspective-origin: bottombottom vanishing point
polperspective-origin: leftleft vanishing point
porperspective-origin: rightright vanishing point

Usage Examples

perspective-origin is applied to the parent element that has the perspective property set.

<!-- Default center viewpoint -->
<div class="poc">
  <div class="tr45deg">3D rotated element</div>
</div>

<!-- Top-left viewpoint -->
<div class="pol">
  <div class="tr45deg">Viewed from the left</div>
</div>