.sidebar { margin-top:100px; width: 1.5%; height:400px; border-radius:8px; text-align:center; background: rgba(205, 215, 230, 1); right: 10px; position: absolute; z-index: 1; } .buttonClass { width: 90%; border-radius: 50%; overflow: hidden; cursor: pointer; transition: all 0.6s; margin-top: 10px; } .buttonClass:hover{ transform: scale(1.2); }