parallax scrolling issue - div element jerking when scrolling in webkit browsers

前端 未结 6 899
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-12 19:44

I have created a parallax scroll, which seem to be working fine in firefox however in the chrome browser there\'s a slight jump on the body text when scrolling. click here scrol

6条回答
  •  不知归路
    2021-02-12 20:10

    May not be related to your specifics, but I had a jumpy parallax scrolling problem, I was able to solve it adding the following CSS for the fixed portions of the page:

    @supports (background-attachment: fixed)
    {
        .fixed-background
        {
            background-attachment: fixed;
        }
    }
    

    Not sure of all the specifics, but found at Alternate Fixed & Scroll Backgrounds

提交回复
热议问题