Bubbling a CSS animation event?

Ok, it turns out that CSS does bubble events, for example.

Ok, it turns out that CSS does bubble events, for example: HTML: Some text! CSS: a { color: red; } a:hover { -webkit-animation-duration: 1s; -webkit-animation-name: change-color; } @-webkit-keyframes change-color { from { color: red; } to { color: blue; } } JS: var a = document. GetElementById( 'a' ); var ul = document.

GetElementById( 'ul' ); a. AddEventListener( 'webkitAnimationEnd', handleEnd ); ul. AddEventListener( 'webkitAnimationEnd', handleEnd ); function handleEnd(e) { console.

Log(e); } You'll see two events fired. The problem I had was that I was using jQuery's bind() and this binds to a specific selector rather than listening to bubbled events (I think).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions