How to use css animation to achieve the effect of scrolling one line every other second?

how do I use css animation to scroll one line every other second?

<html>
  <head>

    <style>


      .mf {
        animation-name: example;
        animation-duration: 4s;
        animation-timing-function: steps(5)
      }
      
      @keyframes example {
        from {transform: translate(0,0)}
        to {transform: translate(0,-100px)}
      }

      
    </style>

  </head>
  <body>
    <div class="mf">
      <div>1</div>
      <div>2</div>
      <div>3</div>
      <div>4</div>
      <div>5</div>
      <div>6</div>
    </div>
  </body>
</html>

if I write this, the animation moves directly every time. I want to scroll smoothly every once in a while, then stop and scroll again. How should I rewrite
?

Jun.20,2022

@keyframes example {
    from {transform: translate(0,0)}
    30% {transform: translate(0,-100px)}
}

single-line text racing lantern effect

Menu