So I am trying to learn new css3 features to get rid of javascript, but I have some problems with the animationevent "function". On w3.org it gives this definition:
interface AnimationEvent : Event {
readonly attribute DOMString animationName;
readonly attribute float elapsedTime;
void initAnimationEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in DOMString animationNameArg,
in float elapsedTimeArg);
};
So how should I use it in firefox or chrome? If anyone knows, please give a basic example of where should I write the animation name, like after animationName:, or after typerArg: should I put animationstart; I really have no idea. Thanks!