UNPKG

@madeja-studio/telar

Version:

UI component library by Madeja Studio

17 lines (14 loc) 273 B
import type { AnimationFactory } from './animation'; interface FadeProps { from?: number; to?: number; } export const fade: AnimationFactory<FadeProps> = ({ from = 1, to = 0.5, } = {}) => { return { from: { opacity: from }, to: { opacity: to }, }; };