.row img { margin-bottom: 20px; transition: 0.3s; border: 5px solid black; border-radius: 10px; } .row img:hover { -moz-transform: scale(1.1); -webkit-transform: scale(1.1); transform: scale(1.1); box-shadow: 0 0 15px 10px rgba(255, 123, 178, 0.5); } li:hover { transition: transform 500ms; transform: translateY(-8px); }