When the web page moves down font-size automatically increases, when the web page moves up font-size automatically decreases, the web page: www.rongmeienze.com automatically increases when the web page moves down font-size, when the web page moves up font-size, it automatically decreases,
URL: www.rongmeienze.com
Reply content:
When the web page moves down font-size automatically increases, when the web page moves up font-size automatically decreases,
URL: www.rongmeienze.com
Trim ('. B1' ).css ({'font-size': (scrollPos/6) + "px", 'Opacity': 0 + (scrollPos/500 )});
Do not use other people's JS. Write it by yourself.
JQuery (window ). scroll (function () {var scrollPos = jQuery (this ). scrollTop (); jQuery ('. youClass h1'0000.css ({// Here is the object you need to change the size of 'font-size': (scrollPos/6) + "px", 'Opacity ': 0 + (scrollPos/500 )});});
PS: it is best to determine the size as needed. Cannot be reduced to zero ~ Your demo site is still faulty.