T
T
Taron4uk2019-11-01 18:02:27
css
Taron4uk, 2019-11-01 18:02:27

The animation doesn't loop. Where is the error?

<div class="redirect-text">Подождите
            <a href="#" class="link1">.</a>
            <a href="#" class="link2">.</a>
            <a href="#" class="link3">.</a>
        </div>

.link1, .link2, .link3 {
  opacity: 0;
  animation-duration: 1s;
  animation-name: appearance;
    animation-iteration-count: infinite;
  animation-fill-mode: forwards;
    animation-timing-function: linear;
}
.link1, .link2, .link3 
{
  animation-delay: 0.2s;
}
.link2
{
  animation-delay: 0.4s;   
}
.link3
{
  animation-delay: 0.6s;   
}
@keyframes appearance
{
  from
  {
    opacity: 1;
  }
  to
  {
    opacity: 1;
  }

Everything is set up and animated from the beginning of the page, but everything stops, only when the page is reloaded, the animation starts again. For some reason, infinite cycling doesn't work.
The dots should appear in order

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2019-11-01
@Taron4uk

from
  {
    opacity: 1; // Замени на 0
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question