izummm
@izummm
Заходите на сайт https://gifki.su

Как сделать анимацию слева направо?

Как переделать анимацию, чтобы цвет менялся слева направо? Сейчас справа на лево.

.text {
  background: linear-gradient(to right, #ffffff,#ffffff,#a6fefd,#14b6b6,#a6fefd,#ffffff,#ffffff,#ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 7s ease-in-out infinite normal;
  -moz-animation: textShine 7s ease-in-out infinite normal;
  -o-animation: textShine 7s ease-in-out infinite normal;
  -webkit-animation: textShine 7s ease-in-out infinite normal;
}

@keyframes textShine {
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
  • Вопрос задан
  • 130 просмотров
Решения вопроса 1
modelair
@modelair
unsocial
animation-direction: reverse;
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы