Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question