2
I have the following complication:
$(window).scroll(function() {
$('ID').css('opacity', parseInt(1 - ($(this).scrollTop()/100)*1)); });
In this code I can put opacity: 1; when the scroll is at the top and when just turning 1px it already poe opacity: 0; What I’m trying to do is that it starts with 0.7 and gradually disappears until I get to the top, I use the VH measure to leave the page the size of the view and with that, at the 0vh position it would be 0.7 and at the 100vh position it would be 0.1
The site is this one http://disk.bl.ee/beltran/clean_style.php
It would be better to post the solved passage as an answer, rather than incorporate it into the question field. You can keep your acceptance with whoever you’ve solved for you, and leave your answer as a compliment.
– Bacco
@Bacco a yes, I understand, I’ll do it then.
– flourigh