Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll issue #14

Open
samiullah51 opened this issue Oct 1, 2022 · 2 comments
Open

Scroll issue #14

samiullah51 opened this issue Oct 1, 2022 · 2 comments

Comments

@samiullah51
Copy link

There is bug in scrolling

@Pedrenri
Copy link

Pedrenri commented Oct 6, 2022

I would suggest swapping libraries. I used AOS (Animate on Scroll) for mine. Looks cleaner and doesn't reload the animation randomly.

@Akshat162001
Copy link

window.addEventListener('scroll', function(event) {
event.preventDefault();
window.scrollTo(0, 0);
});

// Disable CSS animations that affect scrolling
document.querySelectorAll('*').forEach(function(element) {
const animations = getComputedStyle(element).animationName;
if (animations.includes('scroll')) {
element.style.animationName = 'none';
}
}); //try this might fix your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants