JSFiddle - React, Tailwind, and code Playground

by Kocsten

HTML

<div class="satumilas">
  <p>ZorNet: Создание сайта </p>
  <div class="rydunim">
    <span>Здесь ваш заголовок</span>
  </div>
</div>

CSS

.satumilas {
  font-family: 'Roboto Condensed', sans-serif;
  margin: 30px;
  background: #ee6123;
  width: 299px;
  height: 39px;
  border-radius: 5px;
  color: #fff;
  text-align: center;
  font-size: 17px;
  text-transform: uppercase;
  line-height: 39px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
 
.satumilas p {
  margin: 0;
  position: relative;
  transition: all ease 1s;
}
 
.rydunim {
  position: absolute;
  top: 0;
  left: 0;
  height: 39px;
  width: 0;
  background: #205081;
  overflow:hidden;
  transition: all ease 2s;
  border-radius: 5px;
}
 
.rydunim span {
  opacity:0;
  transition: all ease 3s;
}
 
.satumilas:hover .rydunim {
  width: 100%;
}
 
.satumilas:hover p {
  opacity: 0;
}
 
.satumilas:hover .rydunim span {
  opacity: 1;
}