Obsolete since Gecko 11 (Firefox 11 / Thunderbird 11 / SeaMonkey 2.8)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
摘要
An event handler for the
MozBeforePaint
event. This is used in concert with the
window.mozRequestAnimationFrame()
method to perform smooth, synchronized animations from JavaScript code.
句法
window.onmozbeforepaint = funcRef;
-
funcRefis the handler function.
范例
见
window.mozRequestAnimationFrame()
范例。
注意事项
This event fires immediately before the browser window is repainted, if the event has been requested by one or more scripts calling
window.mozRequestAnimationFrame()
. The event handler receives as an input parameter an event whose
timeStamp
property is the time, in milliseconds since epoch, that is the "current time" for the current animation frame. This time is the same for all animations being run in the same browser window, including those using the
window.mozRequestAnimationFrame()
方法,
CSS transitions
, and SMIL animations.
规范
Not part of a specification.
元数据
- 最后修改: