gwt-2.4

How to add CSS AnimationEnd event handler to GWT widget?

不想你离开。 提交于 2019-12-01 03:01:20
问题 I would like my GWT widget to be notified when its CSS animation is over. In plain HTML/Javascript this is easily done by registering an event handler like so: elem.addEventListener("webkitAnimationEnd", function(){ // do something }, false); // add more for Mozilla etc. How can I do this in GWT? This type of event is unknown to GWT's DOMImpl classes, so I keep getting an error " Trying to sink unknown event type webkitAnimationEnd ". Thanks! 回答1: You can always write some of the native