D
D
Dymok2018-03-28 00:18:20
css
Dymok, 2018-03-28 00:18:20

Why is the animation not showing correctly?

I'm trying to make a side menu. As planned, the content should go to the left, and the menu should go to the right, as if they were one. But it turns out that the content is moved first, and only after a while the side block moves. What can be wrong?
code pen

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Orlov, 2018-03-28
@UnluckySerivelha

The thing is that #right-menu is specified in percentages (-100%), while .test "transalteX" is specified in pixels. Accordingly, the animation proceeds at different speeds. Here is the correct option .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question