hover on button but div does not change its property
change CSS property of div by hovering on another tag(button) which is created after it
.zz {
text-align: center;
line-height: 100px;
font-size: 20px;
font-weight: bold;
width: 100px;
height: 100px;
color: white;
background: red;
border: 4px solid black;
margin: 100px;
-webkit-transition: transform 1s;
-webkit-transition-timing: ease-in-out;
-webkit-transition-delay: 0.1s;
float: left;
}
#btn:hover~.zz {
background: green;
-webkit-transform: rotate(40deg) translate(100px, 20px);
}
<div class="zz"> this is div</div>
<button id="btn"> hover me </button>