.hover { background-color: blue; padding: 8px; } .move { background-color: red; padding: 8px; transition: 0.5s; } .hover:hover ~ .move { margin-top: 48px; }