Browse documentation

Reference / Transitions & animation

Animation name

Reference keyframes by name and set the duration separately. Mono emits matching built-in or theme keyframes once per stylesheet.

Working example

Names beginning with mono- identify the built-in keyframes. For a custom name, define matching keyframes in your theme or stylesheet.

HTML
<details class="group rounded border p-4">
  <summary class="cursor-pointer font-semibold">Apply the proof mark</summary>
  <p class="mt-3 origin-left motion-safe:group-open:animate-name-mono-wiggle motion-safe:group-open:animate-duration-700">✳ Press checked</p>
</details>

Class reference

ClassCSS declarations
animate-name-mono-wiggleanimation-name: mono-wiggle;
animate-name-mono-pulseanimation-name: mono-pulse;
animate-name-noneanimation-name: none;
animate-name-[mono-fade-in]animation-name: mono-fade-in;
View full generated CSS
Compiled CSS
@keyframes mono-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mono-pulse {
  50% {
    opacity: 0.5;
  }
}
@keyframes mono-wiggle {
  0%, 100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
.animate-name-\[mono-fade-in\] {
  animation-name: mono-fade-in;
}
.animate-name-mono-pulse {
  animation-name: mono-pulse;
}
.animate-name-mono-wiggle {
  animation-name: mono-wiggle;
}
.animate-name-none {
  animation-name: none;
}