# perspective-origin

> The `perspective-origin` CSS property defines the position at which the viewer is looking at the 3D object.

## How do I change the vanishing point of a 3D scene in CSS?

The property that defines the point from which the viewer is looking at the element in a 3D space when the `perspective` property is applied. It controls the vanishing point of the perspective effect, determining how the 3D transformation appears.

- Topic: Transformations
- Type: property
- Browser support: Chrome 36+, Chrome Android 36+, Edge 12+, Firefox 16+, Firefox Android 16+, Safari 9+, Safari iOS 9+

## Example

Wrong:

```css
.cube {
  perspective-origin: top left;
  transform: rotateX(20deg);
}
```

Right:

```css
.scene {
  perspective: 600px;
  perspective-origin: top left;
}
.cube {
  transform: rotateX(20deg);
}
```

The vanishing point belongs to the parent with `perspective`, not to the element being rotated.

## Common mistakes

- Setting `perspective-origin` on the transformed child, where it does nothing.

## Key points

- `perspective-origin` is set on the same element as `perspective`.
- That element has a `perspective` value, or the origin has no effect.

## Interview questions

### What is the default perspective-origin?

'50% 50%', the center of the element.

### What is the difference between perspective-origin and transform-origin?

`perspective-origin` sets where the viewer looks from; `transform-origin` sets the point an element rotates or scales around.

## Related cards

- [perspective](https://wonderium.dev/css/perspective-property.md)
- [transform-origin](https://wonderium.dev/css/transform-origin.md)
- [transform-style](https://wonderium.dev/css/transform-style.md)
- [perspective()](https://wonderium.dev/css/perspective.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/perspective-origin
- Last updated: 2026-11-25
