0
I have the following HTML:
<section id="rolagem">
<article id="item1">
//conteúdo
</article>
<article id="item2">
//conteúdo
</article>
<article id="item3">
//conteúdo
</article>
</section>
What I need to do in pure javascript so that each time I scroll up the scrollbar, it hides an item from the item1.
Grateful to those who help.
Possible duplicate of Manipulating elements with Javascript page scroll
– Ricardo Pontual
I couldn’t do it using his code
– Francis Vagner da Luz
There is even the example working on codepen: https://codepen.io/silviolucenajunior/pen/bErJgm Only change the value of
window.scrollY
– Ricardo Pontual