You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -49,7 +49,5 @@ function that will be executed on error watching or cancel watching devices avai
49
49
> - __ref__: ref to attach media element.
50
50
> - __isSupported__: boolean that indicates if RemotePlayback API is available or not.
51
51
> - __state__: remote device state: _connected_, _connecting_ or _disconnect_.
52
-
> - __watchAvailability__: function that watchs remove device availability.
53
-
> - __cancelWatchAvailability__: function that cancel watching device availability.
54
52
> - __prompt__: function that prompts the user to select an available remote playback device and give permission for the current media to be played using that device.
* **`useAnimation`**: Hook to use [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).
6
+
* @param {UseAnimationProps} param - object
7
+
* @param {Keyframe[] | PropertyIndexedKeyframes | null} param.keyFrames - array of keyfram objects ot a keyframe object whose properties are arrays of values to iterate over.
8
+
* @param {boolean} [param.immediate=false] - boolean to start animation immediatly or not.
9
+
* @param {number | KeyframeAnimationOptions} [param.opts] - either an integer representing the animation's duration (in milliseconds), or an Object containing one or more timing properties.
10
+
* @param {(this: Animation, evt: AnimationPlaybackEvent) => void} [param.onFinish] - function that will be executed when animation has been finished.
11
+
* @param {(this: Animation, evt: Event) => void} [param.onRemove] - function that will be executed when animation has been removed.
12
+
* @param {(this: Animation, evt: AnimationPlaybackEvent) => void} [param.onCancel] - function that will be executed when animation has been canceled.
13
+
* @param {(err: unknown) => void} [param.onError] - function that will be executed when an error occurred.
14
+
* @returns {UseAnimationResult} result
15
+
* Object with these properties:
16
+
* - __isSupported__: boolean to indicate if Web Animations API is supported or not.
17
+
* - __ref__: RefCallback that need to be attached to element to animate.
18
+
* - __playAnimation__: function to play animation.
19
+
* - __pauseAnimation__: function to pause animation.
20
+
* - __finishAnimation__: function to finish animation.
21
+
* - __cancelAnimation__: function to cancel animation.
22
+
* - __persistAnimation__: function to persist animation.
23
+
* - __reverseAnimation__: function to reverse animation.
24
+
* - __commitStyles__: function that writes the computed values of the animation's current styles into its target element's style attribute.
25
+
* - __updatePlaybackRate__: function that sets the speed of an animation after first synchronizing its playback position.
0 commit comments