I have the following complication:
$(window).scroll(function() {
$('ID').css('opacity', parseInt(1 - ($(this).scrollTop()/100)*1)); });
In this code I can put the opacity: 1; when the scroll is at the top and when spinning only 1px it already poe opacity: 0; What I'm trying to do is that it starts with 0.7 and goes slowly disappearing until I get to the top, I use the VH measure to leave the page the size of the view and with that, in position 0vh it would be 0.7 and in position 100vh it would become 0.1
The site is this one link