JSFiddle - React, Tailwind, and code Playground
HTML
<button id="run">Запустить анимацию</button>
<p class="ease" id="ease">ease</p>
<p class="ease-in" id="ease-in">ease-in</p>
<p class="ease-out" id="ease-out">ease-out</p>
<p class="ease-in-out" id="ease-in-out">ease-in-out</p>
<!-- Пример сайта know-online.com -->
CSS
p {
background: green;
width: 0;
white-space: nowrap;
}
.ease {transition: width 5s ease;}
.ease-in {transition: width 5s ease-in;}
.ease-out {transition: width 5s ease-out;}
.ease-in-out {transition: width 5s ease-in-out;}
JavaScript
document.getElementById("run").onclick = function() {
document.getElementById("ease").style.width = "100%";
document.getElementById("ease-in").style.width = "100%";
document.getElementById("ease-out").style.width = "100%";
document.getElementById("ease-in-out").style.width = "100%";
}