Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Animation Performance Issue in SVG Rendering

  • 4 回覆
  • 0 有這個問題
  • 104 次檢視
  • 最近回覆由 spam dummy

更多選項

In Firefox, the animation exhibits performance issues like stuttering, particularly in elements that rely on animateTransform and animate for movement or opacity transitions. This issue is not present in Chrome, where the animations run smoothly without any noticeable lag.

Expected Behavior: The animation should render smoothly on both Chrome and Firefox without any stuttering or lag, providing a seamless experience for users.

Steps to Reproduce:

Open the provided SVG code in Firefox.

Observe the animation, particularly the elements with animate and animateTransform attributes.

Notice the stuttering or lag compared to the smooth rendering in Chrome.

In Firefox, the animation exhibits performance issues like stuttering, particularly in elements that rely on animateTransform and animate for movement or opacity transitions. This issue is not present in Chrome, where the animations run smoothly without any noticeable lag. Expected Behavior: The animation should render smoothly on both Chrome and Firefox without any stuttering or lag, providing a seamless experience for users. Steps to Reproduce: Open the provided SVG code in Firefox. Observe the animation, particularly the elements with animate and animateTransform attributes. Notice the stuttering or lag compared to the smooth rendering in Chrome.

所有回覆 (4)

更多選項

Biny said

In Firefox, the animation exhibits performance issues like stuttering, particularly in elements that rely on animateTransform and animate for movement or opacity transitions. This issue is not present in Chrome, where the animations run smoothly without any noticeable lag. Expected Behavior: The animation should render smoothly on both Chrome and Firefox without any stuttering or lag, providing a seamless experience for users. Steps to Reproduce: Open the provided SVG code in Firefox. Observe the animation, particularly the elements with animate and animateTransform attributes. Notice the stuttering or lag compared to the smooth rendering in Chrome.

https://codepen.io/kzwr/pen/qEZzYaN

更多選項

This looks like a Firefox limitation with SVG SMIL animations rather than a problem with your code. Firefox tends to struggle when many elements animate at the same time, especially with transform and opacity. Reducing the number of animated elements usually helps. Another option is to move the animation to CSS instead of using animate or animateTransform. Some people also get better results by slightly slowing the animation down so Firefox has more time to render each frame. If you need it to be smooth everywhere, switching away from SMIL animations is usually the safest approach.

更多選項

Understood, thanks for the explanation. Since the same code runs smoothly in Chrome, I wanted to report this to the Firefox community in hopes that Firefox's performance will continue to improve.

更多選項

+1 I've also noticed this while using Zen, based on Mozilla. elements with continues motion like tickers\marquees\carousels have a very slight stutter on their easing and constant motion. "Floating" looping animation elements stutter, small button animations stutter.. happens especially at the end of the animations where the easing takes part.

I've tried tinkering with countless settings, WebRenderer settings, VSync, custom FPS, debugging and monitoring tools, NVIDIA control panel app settings, GPU Acceleration settings.. nothing budges.

Everything works perfectly on several chromium based browsers though.

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題