UNPKG

@smoovy/tween

Version:
22 lines (21 loc) 1.21 kB
import { DOMTweenProps } from '../props'; import { Timeline, TimelineConfig, TimelineItemConfig } from '../timeline'; import { SimpleTweenConfig } from '../tween'; declare function timeline(config?: TimelineConfig): Timeline; declare function staggerTo<V extends DOMTweenProps>(targets: HTMLElement[] | NodeListOf<HTMLElement>, props: Partial<V>, config?: SimpleTweenConfig<V> & Partial<{ timeline: TimelineConfig; stagger: TimelineItemConfig; }>): Timeline; declare function staggerTo<V extends object>(targets: V[], props: Partial<V>, config?: SimpleTweenConfig<V> & Partial<{ timeline: TimelineConfig; stagger: TimelineItemConfig; }>): Timeline; declare function staggerFromTo<V extends DOMTweenProps>(targets: HTMLElement[] | NodeListOf<HTMLElement>, fromProps: Partial<V>, toProps: Partial<V>, config?: SimpleTweenConfig<V> & Partial<{ timeline: TimelineConfig; stagger: TimelineItemConfig; }>): Timeline; declare function staggerFromTo<V extends object>(targets: V[], fromProps: Partial<V>, toProps: Partial<V>, config?: SimpleTweenConfig<V> & Partial<{ timeline: TimelineConfig; stagger: TimelineItemConfig; }>): Timeline; export { timeline, staggerTo, staggerFromTo };