# ::view-transition-new()

> The `::view-transition-new()` CSS pseudo-element represents the live view of an element after a view transition.

## How do I customize the new state animation in a view transition?

The pseudo-element that represents the live representation of the new state of an element. By default, it fades in over the old snapshot, and can be given any custom animation.

- Topic: View Transitions
- Type: pseudo-element
- Browser support: Chrome 109+, Chrome Android 109+, Edge 109+, Firefox 144+, Firefox Android 144+, Safari 18+, Safari iOS 18+

## Example

Wrong:

```css
::view-transition-new(root) {
  animation: slide-in 0.4s ease-out;
}
```

Right:

```css
::view-transition-new(root) {
  animation: slide-in 0.4s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
  }
}
```

Users who ask for less motion see the new view without the slide.

## Common mistakes

- The new view looks stretched during resize because `object-fit` wasn't set.

## Key points

- Custom entry animations on `::view-transition-new()` have matching exit animations on `::view-transition-old()`.
- Old and new views with different aspect ratios use `object-fit` and `height: 100%` to avoid stretching.
- Motion is removed or reduced inside `@media (prefers-reduced-motion: reduce)`.

## Interview questions

### Is ::view-transition-new() a live view?

Yes. It shows the new state as it renders, so animations and video in it keep playing.

### Why does the new view look stretched during a view transition?

The old and new images have different aspect ratios; set `height: 100%` and `object-fit` on both to control scaling.

## Related cards

- [::view-transition-old()](https://wonderium.dev/css/view-transition-old.md)
- [::view-transition-group()](https://wonderium.dev/css/view-transition-group.md)
- [::view-transition](https://wonderium.dev/css/view-transition.md)
- [@keyframes](https://wonderium.dev/css/keyframes.md)
- [object-fit](https://wonderium.dev/css/object-fit.md)

---

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