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 To hook up in events, you will need JavaScript. Another method is that you can use the pseudo squared by using pure CSS class < / Code> and then you can use javascript to add / remove.
$ ('# element1'). Hover (function () ($ ('# Element2'). AddClass ('animate');}, function () {$ ('# element2'). RemoveClass ('Chetan');});
: hover , but only when a child of
# element2 Is
# element1 .
# element1: hover # element 2 {/ * your animation} /
Comments
Post a Comment