* { margin: 0; padding: 0; } .image { height: 100vh; width: 100%; background-position: center; background-size: cover; } .logo { width: 250px; height: 100px; top: 10%; position: absolute; background: transparent; display: flex; justify-content: center; align-items: center; z-index: 10; transition: 5s; } .logo img { width: 80px; } .carousel-inner img { width: 100px; height: 200px; }