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
?