JSFiddle - React, Tailwind, and code Playground

by Alexey Zakharov

SCSS

.catalog-item-slider {
  position: relative;
  
  &__item {
    display: none;
    cursor: pointer;
    position: relative;
    
    &:first-child {
      display: block;
    }
  }
  
  &__pagination {
    min-width: 82px;
    position: absolute;
    padding: 0 22px;
    height: 30px;
    background-color: rgba(20, 20, 20, 0.5);
    border-radius: 15px;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 10px;
    z-index: 1;
  }
  
  &__pagination-current {
    font-weight: 600;
    margin-right: 4px;
  }
}