#banner { position: relative; padding-top: 37.04%; > .container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; > * { position: absolute; } > .list { left: 0; top: 0; width: 100%; height: 100%; > ul { position: relative; height: 100%; > li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: all 1s; > a { display: block; height: 100%; > * { width: 100%; height: 100%; object-fit: cover; } } &.active { opacity: 1; } } } } > .arrow, > .dots { z-index: 1; } > .arrow { top: 50%; width: 100%; transform: translateY(-50%); pointer-events: none; padding: 0 20px; opacity: 0; transition: all 0.3s; > button { pointer-events: all; width: 60px; height: 60px; border: none; border-radius: 50%; background-color: #006b47; transition: all 0.3s; > img { height: 24px; object-fit: contain; } &:last-of-type { transform: rotate(180deg); } &:hover { background-color: white; } } } &:hover { > .arrow { opacity: 1; } } > .dots { bottom: 0; padding: 10px 0; width: 100%; > .dot { width: 30px; height: 8px; margin: 0 4px; border-radius: 4px; background-color: #006b47; opacity: 0.2; cursor: pointer; &.active { opacity: 1; } } } } }