animation
Utilities for Tailwind CSS v4 keyframe animations (spin, ping, pulse, bounce) driven by IssContext timestamps.
ISS preview

Examples
Section titled “Examples”use iss::{box_tw, tw, IssViewport};
let ctx = IssViewport::dark(800.0).with_animation_time(elapsed_secs);let spinner = box_tw(icon, ctx.resolve(tw!("size-6 animate-spin motion-reduce:animate-none")));use iss::typed::*;
let style = IssStyle::new().size(6).animate_spin().motion_reduce(|s| s.animate_none());Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
animate-none |
animation: none; |
.animate_none() |
animate-spin |
1s linear infinite 360deg rotation; |
.animate_spin() |
animate-ping |
1s cubic-bezier scale + fade pulse; |
.animate_ping() |
animate-pulse |
2s cubic-bezier opacity breathing; |
.animate_pulse() |
animate-bounce |
1s infinite vertical bounce; |
.animate_bounce() |
animate-[spin_2s_linear_infinite] |
Arbitrary keyframe string; |
.animate_custom("spin 2s linear infinite") |
Behavior Notes
Section titled “Behavior Notes”- Pair with
motion-reduce:animate-noneto respect reduced-motion preferences, and sample keyframes witheval_animation(style, secs).