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
Apply the proof mark
✳ Press checked
Names beginning with mono- identify the built-in keyframes. For a custom name, define matching keyframes in your theme or stylesheet.
<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
| Class | CSS declarations |
|---|---|
animate-name-mono-wiggle | animation-name: mono-wiggle; |
animate-name-mono-pulse | animation-name: mono-pulse; |
animate-name-none | animation-name: none; |
animate-name-[mono-fade-in] | animation-name: mono-fade-in; |
View full generated 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;
}