Entrances

Fade In Right Animation

Slides in from the right while fading up to full opacity.

Card title

Supporting copy goes here.

Edit this in the studio

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

animation.css
.fade-in-right {
  transform: translate3d(130px, 90px, 0);
  box-shadow: 0px 10px 30px 0px #00000059;
  width: 220px;
  height: 140px;
  background: #1c1e2a;
  border-radius: 18px;
  color: #e7e9ee;
  font-size: 14px;
  animation: fade-in-right-anim 700ms linear 0ms infinite both;
  will-change: transform, opacity;
}

@keyframes fade-in-right-anim {
  0% {
    transform: translate3d(194px, 90px, 0);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: translate3d(130px, 90px, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-right {
    animation: none;
    transition: none;
  }
}

Why it is built this way

Mirror of the left variant, and worth keeping both: in a right-to-left layout the directions swap meaning entirely. Because the movement lives in a transform rather than a margin, flipping it is one sign change.

What it animates

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

Opacity
opacity
0 1
2 stopscompositor
X
transform
64 0px
2 stopscompositor

What it costs to run

Opacity and x 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.70s across 4 keyframe stops, with every property moving over the same window.

One curve throughout: Ease Out on a card. 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

Starting at opacity 0 makes the reduced-motion guard load-bearing rather than polite: strip it and a reader who asked for less movement gets no content at all, because nothing ever fades it in. It fades over 0.70s alongside x, and the guard skips all of it together. The generated CSS ends on the resting state, so skipping straight there is safe.

Related animations

faderightentranceslide