scroll-timeline icon indicating copy to clipboard operation
scroll-timeline copied to clipboard

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

Open preetamslot opened this issue 1 year ago • 1 comments

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)

preetamslot avatar Aug 20 '24 12:08 preetamslot

@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.

ADTC avatar Mar 14 '25 01:03 ADTC