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

Astro is triggering animation only once #9

Closed
teddybee opened this issue Nov 9, 2023 · 2 comments
Closed

Astro is triggering animation only once #9

teddybee opened this issue Nov 9, 2023 · 2 comments

Comments

@teddybee
Copy link

teddybee commented Nov 9, 2023

I tried to integrate this lib to Astro 3.5 static page. Unfortunately it is triggered one time when I scroll down. After I reached the bottom of the page and try to go full up and go down another round, the elements are fixed.
Is it as expected?

P.S.: after browser resize, it is working again

@volkandkaya
Copy link
Collaborator

You will need to add

[animation-iteration-count:infinite]

to the elements you want repeating.

Let me know if that fixes the issue.

@teddybee
Copy link
Author

@volkandkaya Thank you.
I added a style to the div, and it solved the problem.
style={"animation-iteration-count: infinite"}
Unfortunately the tailwind class "repeat-infinite" was not worked.

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

2 participants