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-timeline: view(); not working in Astro #283

Open
preetamslot opened this issue Aug 20, 2024 · 1 comment · May be fixed by #297
Open

animation-timeline: view(); not working in Astro #283

preetamslot opened this issue Aug 20, 2024 · 1 comment · May be fixed by #297

Comments

@preetamslot
Copy link

I have this css (inline)

 .content-grid > div {
    animation: up linear both;
    animation-timeline: view();
    animation-range: 0vh 20vh;
  }
  .fade-up {
    animation: up linear both;
    animation-timeline: view();
    animation-range: 0px 200px;
  }

It looks like css animations are not triggered (Firefox), only JS animations are working for me.

If someone has a tip, let me know!

https://uinc.netlify.app/ (Project)

@ADTC
Copy link

ADTC commented Mar 14, 2025

@preetamslot don't wrap in @media screen and (prefers-reduced-motion: no-preference). Use a reset for reduce instead.

See #296.

PS: Also this has nothing to do with Astro since that's (mostly) a static site generator. The browser only sees HTML, CSS and JS.

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