B
B
b4rret2017-11-08 13:46:48
css
b4rret, 2017-11-08 13:46:48

Why does a fixed block "jump" in chrome when scrolling?

Made a fixed block set properties for it

.block {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: #ffffff;
    padding-top: 15px;
    padding-bottom: 14px;
}

But when scrolling the page, the block slightly "twitches", and this effect is only in google chrome. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gortyser, 2017-11-08
@b4rret

Try giving this block -webkit-backface-visibility: hidden;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question