HTML CSS examples for CSS Animation:Hover
Hovering over one element animates another
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .outer {<!-- www . j a va 2s.c om--> padding: 50px; width: 100px; height: 100px; background: black; } .inner { width: 100px; height: 100px; background: red; } .outer:hover .inner { background: green; } .inner:hover { background: red !important; } </style> </head> <body> <div class="outer"> <div class="inner"> </div> </div> </body> </html>