Exits

Zoom Out Animation

Shrinks away toward its centre while fading.

Edit this in the studio

Opens with this animation loaded. Nothing is uploaded — the scene travels in the link.

animation.css
.zoom-out {
  transform: translate3d(180px, 100px, 0);
  width: 120px;
  height: 120px;
  background: #6366f1;
  border-radius: 20px;
  animation: zoom-out-anim 600ms linear 0ms infinite both;
  will-change: transform, opacity;
}

@keyframes zoom-out-anim {
  0% {
    transform: translate3d(180px, 100px, 0);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  100% {
    transform: translate3d(180px, 100px, 0) scale(0.3, 0.3);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-out {
    animation: none;
    transition: none;
  }
}

Why it is built this way

The natural counterpart to a zoom entrance, and the standard way a modal closes. Scaling below about eighty percent starts to read as the element falling backwards rather than closing.

What it animates

3 properties across 2 CSS declarations. The bar shows when each one is moving.

Opacity
opacity
1 0
2 stopscompositor
Scale X
transform
1 0.3
2 stopscompositor
Scale Y
transform
1 0.3
2 stopscompositor

What it costs to run

Opacity, scale x and scale y are handled by the compositor: no layout, no repaint, and the work can run off the main thread. This is the cheap end of CSS animation, which is why it stays smooth on a slow phone where other properties will not.

It runs for 0.60s across 6 keyframe stops, with every property moving over the same window.

One curve throughout: Ease In on a plain box. Keeping a single easing across every property is what makes a multi-property animation read as one movement rather than several things happening at once.

Accessibility

Nothing here hides content — opacity, scale x and scale y move over 0.60s and the element is visible throughout. The exported prefers-reduced-motion guard still silences it, which matters most for the looping ones: motion that never stops is the kind that makes people feel unwell.

Related animations

zoomscaleexitclose