animation-duration

https://webref.ru/css/animation-duration

by Aleksandr Tomashov

HTML

<div class="warn fadeInLeft">Вы не учли, что скалярное 
  поле необходимо и достаточно!</div>

CSS

.warn {
    background: #fc0;
    padding: 10px;
   }
   .fadeInLeft {
    -webkit-animation-name: fadeInLeft;
    -webkit-animation-duration: 1s;
    animation-name: fadeInLeft;
    animation-duration: 3s;
   }
   @-webkit-keyframes fadeInLeft {
    from {
     opacity: 0;
     transform: translateX(-2000px);
    }
    to {
     opacity: 1;
     transform: none;
    }
   }
   @keyframes fadeInLeft {
    from {
     opacity: 1;
     margin-right: 2000px;
    }
    to {
     opacity: 1;
     transform: none;
    }
   }