Skip to content

The Open Standard for Generative UI

455 B
Raw Blame
/* Both layers fill the wrapper, which the caller positions. The live canvas is
   positioned too, so it paints over the still in source order. */
.still,
.live {
  position: absolute;
  inset: 0;
}

.still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live {
  opacity: 0;
  transition: opacity 600ms ease;
}

.liveReady {
  opacity: 1;
}

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