#transex2 { border: solid black 1px; border-radius:50px; width:10%; background-color: #9FF781; transition: width 3s linear, background-color 3s linear; } #transex2:hover { width: 60%; height:400px; background-color: #A9E2F3; border-radius:0px; }