I have created my portfolio using absolute divs portfolio in sort you can switch between tabs only by clicking. but now I want to add scrolling too is there any way to call function on scroll. I want to make current absolute div diplay none and next absolute div display flex. I am in hurry so please …
I have tried this : but not working
window.onload = function () {
window.onscroll = function () {
console.log("hello world");
};
};
window.onload = function () {
absolute_div.addEventListener('scroll' , function () {
console.log("hello world");
};
)};