javascript - CSS3 Animations trigger others dom elements -


I currently have some CSS3 animations that play in infinite loops on page load.

By the way, to trigger them manually - for example if I had to hover over the Other DOM element without the need for JavaScript / junkie?

i.e. - & gt; Hover on element A - & gt;

You can call it class < / Code> and then you can use javascript to add / remove.

  $ ('# element1'). Hover (function () ($ ('# Element2'). AddClass ('animate');}, function () {$ ('# element2'). RemoveClass ('Chetan');});   

To hook up in events, you will need JavaScript.

Another method is that you can use the pseudo squared by using pure CSS : hover , but only when a child of # element2 Is # element1 .

  # element1: hover # element 2 {/ * your animation} /    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -