C
C
Cheizer2018-06-18 13:01:46
css
Cheizer, 2018-06-18 13:01:46

Why in css3 animation, at a low playback speed in 90s, the image moves in jerks?

Friends, I want to make the background move in one direction, then in the other direction, I decided to make animations on css3. But as it turned out, at a low playback speed in the 90s, the picture moves in jerks. How can this be avoided if possible? How to achieve smooth animation?

.mountains{
    animation: bg-movement 95s ease infinite;
}

@keyframes bg-movement {
    0%,
    100% {
        background-position: 0 0%
    }
    50% {
        background-position: 100% 0%
    }
}

I did it, look, but I have a wide screen, on a small one the speed is higher and jerks are not visible https://codepen.io/Cheizer/pen/Wypzrg/
How can I make the background move smoothly and slowly? Pamagitiiiiiii!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Sokolov, 2018-06-18
@Cheizer

Alternatively, try nesting your .mountains in a .wrapper and animating it with transform: translateX

A
Alex, 2018-06-18
@streetflush

most likely because he makes steps in 1%
put the value in px or vw

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question