Variable: durations
@arolariu/components / motion/tokens / durations
Variable: durations
constdurations:object
Defined in: motion/tokens.ts:10
Standard motion duration constants in seconds.
Aligned with --ac-transition-* CSS custom properties in index.css.
Type Declaration
fast
readonlyfast:0.1=0.1
normal
readonlynormal:0.15=0.15
slow
readonlyslow:0.2=0.2
slower
readonlyslower:0.3=0.3
slowest
readonlyslowest:0.5=0.5
Example
<motion.div animate={{opacity: 1}} transition={{duration: durations.normal}} />
// was this page useful?