class AnimationSchedulerImplWebkit extends AnimationSchedulerImpl
webkitRequestAnimationFrame and
webkitCancelRequestAnimationFrame.AnimationScheduler.AnimationCallback, AnimationScheduler.AnimationHandleINSTANCE| Constructor and Description |
|---|
AnimationSchedulerImplWebkit() |
| 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.
|
get, requestAnimationFramepublic AnimationScheduler.AnimationHandle requestAnimationFrame(AnimationScheduler.AnimationCallback callback, Element element)
AnimationSchedulerUsing 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.
requestAnimationFrame in class AnimationSchedulercallback - the callback to fireelement - the element being animatedprotected boolean isNativelySupported()
AnimationSchedulerImplisNativelySupported in class AnimationSchedulerImpl