Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

Animation-Timeline CSS property not working on Firefox

  • 1 odpowiedź
  • 0 osób ma ten problem
  • 29 wyświetleń
  • Ostatnia odpowiedź od Mark

more options

I used the CSS animation property called animation-timeline , which is written as:

element{ animation-time: view(); }

When I view the webpage on Chrome, Edge, Opera, and even on Phoenix browser, the animation works.

It is only on Firefox that the animation does not work. I even added the Vendor-prefix of " -moz-animation-timeline " to the CSS property, and it still didn't work on Firefox, while it is working on all other browsers.

The CAN I USE website ( https://caniuse.com/?search=animation-timeline ) tells me that Firefox does not support it at all.

It however said that I can enable it, by setting "layout.css.scroll-driven-animations.enabled" to true.

1.) I don't know what that means.

2.) Would my website's users be able to see the animation on their Firefox browser, if we assume that I make this setting ?

3.) I am using Firefox version 138.0.3 (64-bit) : What can I do to see that both I and users of my website are able to see this animation on Firefox ?

Regards.

I used the '''CSS animation property''' called '''animation-timeline''' , which is written as: element{ animation-time: view(); } When I view the webpage on Chrome, Edge, Opera, and even on Phoenix browser, the animation works. It is only on Firefox that the animation does not work. I even added the Vendor-prefix of " '''-moz-animation-timeline''' " to the CSS property, and it still didn't work on Firefox, while it is working on all other browsers. The '''CAN I USE''' website ( https://caniuse.com/?search=animation-timeline ) tells me that Firefox does not support it at all. It however said that I can enable it, by setting "layout.css.scroll-driven-animations.enabled" to true. 1.) I don't know what that means. 2.) Would my website's users be able to see the animation on their Firefox browser, if we assume that I make this setting ? 3.) I am using Firefox version 138.0.3 (64-bit) : What can I do to see that both I and users of my website are able to see this animation on Firefox ? Regards.

Wszystkie odpowiedzi (1)

more options

The "layout.css.scroll-driven-animations.enabled" is a preference set by the user in about:config. It is not something websites can set. If a user set this preference to true in about:config, they should be able to see the animation-timeline.

Below, I have attached a description from https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline#browser_compatibility.


WARNING from the moderator team: Changing Firefox preferences from the about:config page can sometimes break Firefox or cause strange behavior. You should only do this if you know what you're doing. Please read Firefox advanced customization and configuration options to learn more.

Zmodyfikowany przez Paul w dniu

Pomocne?

Zadaj pytanie

Aby odpowiadać na posty, musisz zalogować się na swoje konto. Zadaj pytanie, jeśli nie masz jeszcze konta.