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

No animation if element is in the view #16

Open
Azteker opened this issue Dec 15, 2022 · 4 comments
Open

No animation if element is in the view #16

Azteker opened this issue Dec 15, 2022 · 4 comments

Comments

@Azteker
Copy link

Azteker commented Dec 15, 2022

If the element is already in the viewport at first, the animation will not be triggered. Setting 'animatePreScroll' to true doesn't help. Can you check it?

I tried it in a newly built react project with react 18.2

@CRIMSON-CORP
Copy link

I also have this issue

@DeveloperBlue
Copy link

Issue still exists

Using in a client-side NextJS component

react: 18.2.0
next: 13.5.2
react-animation-on-scroll: 5.1.0

@raj-pulapakura
Copy link

Also having this issue, same specs as @DeveloperBlue

@raj-pulapakura
Copy link

WOAH, hold up a second.

This issue is prevalent in development, but after I deployed the website, the animations are suddenly loading, even if the components is already in viewport!

No clue why this is happening...

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

4 participants