Home > Mobile >  How to stop the site title from fading when scrolling?
How to stop the site title from fading when scrolling?

Time:07-22

I am trying to create a blog on wordpress and the theme is designed so whenever I scroll down the title of my blog slowly fades. I want to disable this but do not know the CSS code. Can anyone help? For reference the website is kylesjapan.life

CodePudding user response:

It is probably this part of the javascript

$( '.site-branding' ).css({
    'opacity' : ( 1 - position / height * 2 )
});

remove this part, or change it to

'opacity' : 1
  • Related