Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

header lags behind when scrolling

Tags:

html

css

I tried to find something about this on the net, and although it's a minor issue, I feel as if it impacts the site experience. Furthermore, depending on the browser or speed of your computer, you may not notice this problem.

The issue is I have a fixed header on my site. When scrolling up or down, it seems to lag or drag behind... it stays fixed at the top, but while you scroll it jutters and drags at a different pace.

You can see for yourself, here.

It's doing my head in - it seems to only happen on the portfolio page, and not the home page.

like image 574
George43g Avatar asked Jul 18 '26 11:07

George43g


1 Answers

I had same issue on Chrome. Solved it by adding

-webkit-backface-visibility: hidden;

to the header element in my stylesheet;

There is good article regarding this.

Hope this helps.

like image 88
magzomxzn Avatar answered Jul 20 '26 03:07

magzomxzn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!