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

animation-range doesn't work on Next.js SSG production build on Safari #292

Open
Liooo opened this issue Nov 9, 2024 · 1 comment
Open

Comments

@Liooo
Copy link

Liooo commented Nov 9, 2024

I use view-timeline-name, animation-timeline, animation-range in my Next.js app. They all work on dev build, but when I run production build, while view-timeline-name and animation-timeline works as expected, animation-range doesn't take effect at all on Safari [UPDATE: seems like it does have effect, I have animation-timeline: contain 0% contain 100% but Safari starts the animation too early just as if animation-timeline: entry 0% contain 100% is specified] (no problem on Google Chrome). Does anybody know how to fix this?

@Liooo
Copy link
Author

Liooo commented Nov 9, 2024

Found out that by setting animation-range-start to higher than 0%, it does behave as I want it to, though the animation goes bit off. Ended up making it something like animation-range: contain 0.0001% contain 100.0001%; so that the difference is almost invisible.

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

1 participant