元素是否触发了任何事件来检查css3转换是否已开始或结束?
The completion of a CSS Transition generates a corresponding DOM Event.(CSS Transition的完成将生成相应的DOM事件。) An event is fired for each property that undergoes a transition.(将为每个经历过渡的属性触发一个事件。) This allows a content developer to perform actions that synchronize with the completion of a transition.(这允许内容开发人员执行与转换完成同步的动作。)
The completion of a CSS Transition generates a corresponding DOM Event.
(CSS Transition的完成将生成相应的DOM事件。)
(将为每个经历过渡的属性触发一个事件。)
(这允许内容开发人员执行与转换完成同步的动作。)
To determine when a transition completes, set a JavaScript event listener function for the DOM event that is sent at the end of a transition.(要确定转换何时完成,请为在转换结束时发送的DOM事件设置JavaScript事件监听器函数。) The event is an instance of WebKitTransitionEvent, and its type is webkitTransitionEnd .(该事件是WebKitTransitionEvent的实例,其类型为webkitTransitionEnd 。)
To determine when a transition completes, set a JavaScript event listener function for the DOM event that is sent at the end of a transition.
(要确定转换何时完成,请为在转换结束时发送的DOM事件设置JavaScript事件监听器函数。)
webkitTransitionEnd
(该事件是WebKitTransitionEvent的实例,其类型为webkitTransitionEnd 。)
box.addEventListener( 'webkitTransitionEnd', function( event ) { alert( "Finished transition!" ); }, false );
There is a single event that is fired when transitions complete.(转换完成时会触发一个事件。) In Firefox, the event is transitionend , in Opera, oTransitionEnd , and in WebKit it is webkitTransitionEnd .(在Firefox中,事件是transitionend ,在Opera中是oTransitionEnd ,在WebKit中是webkitTransitionEnd 。)
There is a single event that is fired when transitions complete.
(转换完成时会触发一个事件。)
transitionend
oTransitionEnd
(在Firefox中,事件是transitionend ,在Opera中是oTransitionEnd ,在WebKit中是webkitTransitionEnd 。)
There is one type of transition event available.(有一种类型的过渡事件可用。) The oTransitionEnd event occurs at the completion of the transition.(oTransitionEnd事件在转换完成时发生。)
There is one type of transition event available.
(有一种类型的过渡事件可用。)
(oTransitionEnd事件在转换完成时发生。)
The transitionend event occurs at the completion of the transition.(transitionend事件发生在转换完成时。) If the transition is removed before completion, the event will not fire.(如果在完成之前删除过渡,则不会触发该事件。)
The transitionend event occurs at the completion of the transition.
(transitionend事件发生在转换完成时。)
(如果在完成之前删除过渡,则不会触发该事件。)
Stack Overflow: How do I normalize CSS3 Transition functions across browsers?
(堆栈溢出:如何在浏览器之间规范CSS3 Transition功能?)
1.4m articles
1.4m replys
5 comments
57.0k users