UNPKG

1.09 kBJavaScriptView Raw
1/**
2 * Copyright (c) 2013-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8
9'use strict';
10
11var SyntheticEvent = require('./SyntheticEvent');
12
13/**
14 * @interface Event
15 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
16 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
17 */
18var AnimationEventInterface = {
19 animationName: null,
20 elapsedTime: null,
21 pseudoElement: null
22};
23
24/**
25 * @param {object} dispatchConfig Configuration used to dispatch this event.
26 * @param {string} dispatchMarker Marker identifying the event target.
27 * @param {object} nativeEvent Native browser event.
28 * @extends {SyntheticEvent}
29 */
30function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
31 return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
32}
33
34SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);
35
36module.exports = SyntheticAnimationEvent;
\No newline at end of file