com.google.gwt.animation.client

## Class AnimationSchedulerImplMozilla

- java.lang.Object
- - com.google.gwt.animation.client.AnimationScheduler
  - - com.google.gwt.animation.client.AnimationSchedulerImpl
    - - com.google.gwt.animation.client.AnimationSchedulerImplMozilla

-      class AnimationSchedulerImplMozilla
      extends AnimationSchedulerImpl

  Implementation using `mozRequestAnimationFrame`.
  See Also:
    Documentation on the MDN

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.google.gwt.animation.client.AnimationScheduler

      `AnimationScheduler.AnimationCallback, AnimationScheduler.AnimationHandle`

  - ### Field Summary

    - ### Fields inherited from class com.google.gwt.animation.client.AnimationSchedulerImpl

      `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AnimationSchedulerImplMozilla()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `isNativelySupported()` Check if the implementation is natively supported.
    `AnimationScheduler.AnimationHandle` | `requestAnimationFrame(AnimationScheduler.AnimationCallback callback, Element element)` Schedule an animation, letting the browser decide when to trigger the next step in the animation.

    - ### Methods inherited from class com.google.gwt.animation.client.AnimationScheduler

      `get, requestAnimationFrame`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AnimationSchedulerImplMozilla

          AnimationSchedulerImplMozilla()

  - ### Method Detail

    - #### requestAnimationFrame

          public AnimationScheduler.AnimationHandle requestAnimationFrame(AnimationScheduler.AnimationCallback callback,
                                                                 Element element)

      Description copied from class: `AnimationScheduler`
      Schedule an animation, letting the browser decide when to trigger the next step in the animation.

      Using this method instead of a timeout is preferred because the browser is in the best position to decide how frequently to trigger the callback for an animation of the specified element. The browser can balance multiple animations and trigger callbacks at the optimal rate for smooth performance.

      Specified by:
        `requestAnimationFrame` in class `AnimationScheduler`
      Parameters:
        `callback` - the callback to fire
        `element` - the element being animated
      Returns:
        a handle to the requested animation frame

    - #### isNativelySupported

          protected boolean isNativelySupported()

      Description copied from class: `AnimationSchedulerImpl`
      Check if the implementation is natively supported.
      Specified by:
        `isNativelySupported` in class `AnimationSchedulerImpl`
      Returns:
        true if natively supported, false if not