Usage & Triggers
Control icon style, animation type, trigger mode, sizing, and color with consistent props or HTML attributes.
React Components
Component Usage
TSX
import { Icon0Circle, Icon24HoursClock } from "@animeicons/react";
export function Example() {
return (
<div className="flex gap-4">
<Icon0Circle variant="duotone" animation="auto" trigger="hover" size={28} />
<Icon24HoursClock variant="solid" animation="tada" trigger="loop" color="#845ec2" />
</div>
);
}Web Component (<anime-icon>)
Custom Element
HTML
<anime-icon
name="0-circle"
variant="duotone"
animation="auto"
trigger="hover"
size="28"
color="#845ec2"
></anime-icon>Trigger Modes
| Trigger | Behavior |
|---|---|
hover | Plays the animation when the user hovers or focuses the icon (default). |
loop | Loops continuously, automatically pausing via IntersectionObserver when off-screen. |
mount | Plays once as soon as the icon mounts into the DOM. |