Skip to content

The VS Code of video editing, built for agents.

TypeScript
1.6 KB
Raw Blame
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* What a row shows while the agent is at work: a highlight sweeping
   through the muted text of a running tool, and the stepping ellipsis of
   the transcript's running indicator. Both settle on plain text for anyone
   who asked the system for less motion. */

.agent-shimmer {
  color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--muted-foreground) 0%,
    var(--muted-foreground) 35%,
    var(--foreground) 50%,
    var(--muted-foreground) 65%,
    var(--muted-foreground) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: agent-shimmer 1.6s linear infinite;
}

@keyframes agent-shimmer {
  to {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-shimmer {
    animation: none;
    background-image: none;
    color: var(--muted-foreground);
  }
}

/* "Thinking" → ".", "..", "..." on a fixed-width tail so the label does not jitter. */
.agent-ellipsis::after {
  content: ".";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: agent-ellipsis 1.2s steps(1, end) infinite;
}

@keyframes agent-ellipsis {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-ellipsis::after {
    animation: none;
    content: "...";
  }
}