-
Notifications
You must be signed in to change notification settings - Fork 0
/
AnimationEvent.cljs
123 lines (88 loc) · 4.85 KB
/
AnimationEvent.cljs
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
(ns web.animation.AnimationEvent
"The AnimationEvent interface represents events providing information
to animations."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The AnimationEvent() constructor returns a newly created `web.animation.AnimationEvent`, representing an event in relation with an animation.
The AnimationEvent() constructor also inherits arguments from `Event()`.
type
A `web.dom.DOMString` representing the name of the type of the AnimationEvent. It is case-sensitive and can be: 'animationstart', 'animationend', or 'animationiteration'.
animationName Optional
A `web.dom.DOMString` containing the value of the `animation-name` CSS property associated with the transition. It defaults to \\\"\\\".
elapsedTime Optional
A float giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. For an \\\"animationstart\\\" event, elapsedTime is 0.0 unless there was a negative value for `animation-delay`, in which case the event will be fired with elapsedTime containing (-1 * delay). It defaults to 0.0.
pseudoElement Optional
Is a `web.dom.DOMString`, starting with \\\"::\\\", containing the name of the pseudo-element the animation runs on. If the animation doesn't run on a pseudo-element but on the element itself, specify an empty string: \\\"\\\". It defaults to \\\"\\\".
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent`"
js/AnimationEvent)
(defn init-animation-event
"Method.
The AnimationEvent.initAnimationEvent() method Initializes an
event created using the deprecated `Document.createEvent(\\\"AnimationEvent\\\")`
`animationEvent.initAnimationEvent(typeArg, canBubbleArg, cancelableArg, animationNameArg, elapsedTimeArg);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/initAnimationEvent`"
[this type-arg can-bubble-arg cancelable-arg animation-name-arg elapsed-time-arg]
(-> this (.initAnimationEvent type-arg can-bubble-arg cancelable-arg animation-name-arg elapsed-time-arg)))
(defn animation-name
"Property.
The AnimationEvent.animationName read-only property is a `web.dom.DOMString`
the value of the `animation-name` CSS property associated with
transition.
`name = AnimationEvent.animationName`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName`"
[this]
(-> this (.-animationName)))
(defn set-animation-name!
"Property.
The AnimationEvent.animationName read-only property is a `web.dom.DOMString`
the value of the `animation-name` CSS property associated with
transition.
`name = AnimationEvent.animationName`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName`"
[this val]
(aset this "animationName" val))
(defn elapsed-time
"Property.
The AnimationEvent.elapsedTime read-only property is a float
the amount of time the animation has been running, in seconds,
this event fired, excluding any time the animation was paused.
an \\\"animationstart\\\" event, elapsedTime is 0.0 unless there
a negative value for `animation-delay`, in which case the event
be fired with elapsedTime containing (-1 * delay).
`time = AnimationEvent.elapsedTime`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime`"
[this]
(-> this (.-elapsedTime)))
(defn set-elapsed-time!
"Property.
The AnimationEvent.elapsedTime read-only property is a float
the amount of time the animation has been running, in seconds,
this event fired, excluding any time the animation was paused.
an \\\"animationstart\\\" event, elapsedTime is 0.0 unless there
a negative value for `animation-delay`, in which case the event
be fired with elapsedTime containing (-1 * delay).
`time = AnimationEvent.elapsedTime`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime`"
[this val]
(aset this "elapsedTime" val))
(defn pseudo-element
"Property.
The AnimationEvent.pseudoElement read-only property is a `web.dom.DOMString`,
with '::', containing the name of the pseudo-element the animation
on. If the animation doesn't run on a pseudo-element but on the
an empty string: ''.
`name = AnimationEvent.pseudoElement`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement`"
[this]
(-> this (.-pseudoElement)))
(defn set-pseudo-element!
"Property.
The AnimationEvent.pseudoElement read-only property is a `web.dom.DOMString`,
with '::', containing the name of the pseudo-element the animation
on. If the animation doesn't run on a pseudo-element but on the
an empty string: ''.
`name = AnimationEvent.pseudoElement`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement`"
[this val]
(aset this "pseudoElement" val))