-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrc-scroll-anim.d.ts
77 lines (64 loc) · 2.28 KB
/
rc-scroll-anim.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
///<reference path='../react/react.d.ts' />
declare module 'rc-scroll-anim' {
export import React = __React;
interface OverPackProps extends React.HTMLAttributes, React.Props<OverPack> {
component?: string
playScale?: number
always?: boolean
scrollEvent?: (e?: React.WheelEvent) => any
scrollName: string
replay?: boolean
}
export class OverPack extends React.Component<OverPackProps, {}>{}
interface ScrollLinkProps extends React.HTMLAttributes, React.Props<Link> {
component?: string
duration?: number
active?: string,
showHeightActive?: string | number | number[]
ease?: string
onClick?: (e?: React.MouseEvent) => any
onFocus?: (e?: React.FocusEvent) => any
onBlur?: (e?: React.FocusEvent) => any
location: string
toShowHeight?: boolean
className: string
}
export class Link extends React.Component<ScrollLinkProps, {}>{}
interface SrollElementProps extends React.HTMLAttributes, React.Props<Element> {
scrollName: string
component?: string
}
export class Element extends React.Component<SrollElementProps, {}>{}
interface AnimationInterface {
playScale?: number[]
ease?: string
onUpdate?: (easeValue?: string) => any
onStart?: (number?) => any
onComplete?: (number?) => any
}
interface ParallaxProps extends React.HTMLAttributes, React.Props<Parallax> {
animation?: AnimationInterface | AnimationInterface[]
localtion?: string
always?: boolean
scrollName: string
component?: string
}
export class Parallax extends React.Component<ParallaxProps, {}>{}
interface Vars {
duration?: number
ease?: string
docHeight?: number | any
loop?: boolean
scrollInterval?: number
}
interface scrollScreen {
init: (vars?: Vars) => void
unMount: () => void
}
export var scrollScreen: scrollScreen
interface Event {
addEventListener: (type: string, listener: (e?: any) => any) => any
removeEventListener: (type: string, listener: (e?: any) => any) => any
}
export var Event: Event
}