K
K
K_Aleksey2018-02-01 20:56:50
css
K_Aleksey, 2018-02-01 20:56:50

How to solve the problem of fixing a block when scrolling?

There is a block1 that is fixed when scrolling the page, it works correctly until the switch is clicked and block2 appears. After block2 has appeared, block1, which is fixed, fires ahead of time and it turns out that block1 jumps.
https://jsfiddle.net/g9snennj/2/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question