<div class="main">
  <div class="main_bar">1번 메뉴</div>
  <div class="main_bar">2번 메뉴</div>
  <div class="main_bar">3번 메뉴</div>
  <div class="main_bar">4번 메뉴</div>
  <div class="main_bar">5번 메뉴</div>
</div>
.main{
  width: 90vw;
  margin: 0 auto;
  display: flex;
  gap: 3px;
}

.main_bar {
  position: relative;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  border-radius: 10px;
  padding: 1rem;
  height: 150px;
  background-color: #00000052;
  flex: 1;
  transition: 0.2s ease-in-out;
}

.main_bar:hover {
  transform: translateY(20px);
  cursor: pointer;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.