unocss-preset-animations
Version:
💅 An animation preset for UnoCSS, which adapts the tailwindcss-animate plugin
42 lines (39 loc) • 1.1 kB
TypeScript
import * as unocss from 'unocss';
interface PresetAnimationsOptions {
/**
* The unit of time options
*
* @default 'ms'
*/
unit?: 's' | 'ms';
/**
* Default delay of animations
*/
delay?: number;
/**
* Default direction of animations
*/
direction?: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
/**
* Default duration of animations
*/
duration?: number;
/**
* Default fill mode of animations
*/
fillMode?: 'none' | 'forwards' | 'backwards' | 'both';
/**
* Default iteration count of animations
*/
iterationCount?: number | 'infinite';
/**
* Default play state of animations
*/
playState?: 'running' | 'paused';
/**
* Default timing function of animations
*/
timingFunction?: 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | string;
}
declare const presetAnimations: unocss.PresetFactory<unocss.PresetUnoTheme, PresetAnimationsOptions>;
export { type PresetAnimationsOptions, presetAnimations as default, presetAnimations };