搜尋 Mozilla 技術支援網站

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

Learn More

Page animation doesn't trigger unless I move mouse

  • 無回覆
  • 1 有這個問題
  • 4 次檢視
more options

Hi team!

I have a dev project which uses keyframes to animate some svg elements. This animation starts immediately (page load).

The animation has no problems running on chrome and safari but for some reason it has very weird behavior on firefox.

The animation, if there is no mouse movement, will simply not play through until the mouse is active in the view port. As soon as the mouse stops, the animation stops. If the dev tools panel is open and the mouse is active in that pane the animation doesn't run either. The active mouse specifically needs to be in the view port for the animation to run.

Furthermore if there are no animation-delays properties the animations run fine, however not in the intended order of course.

I have attached 2 gif's one showing the animation playing fine on a chrome browser and the other animating every now and then whenever I nudged the mouse. Sadly the mouse doesn't show because "gif".

I mainly develop on linux and I can confirm firefox(81.0.164bit) on both linux and macbook have this behavior.

I read about malware possibly causing an issue etc but a fresh Pop_OS install exhibited the same behavior.

I have resorted to installing chromium which makes me extremely sad. :(

I am happy to be as much help as possible, you need a screen capture, more gifs, hell even zoom call, i'll do it in a second.

The css is as follows -

@keyframes _a7af7bf0 { 0% {opacity:0;} 7% {opacity:1;} 14% {opacity:0;} 100% {opacity:0;} }

._3577a167 {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;
   animation-delay:1s;

}

._719fe403 {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;
   animation-delay:1.5s;

}

._8fab5a1b {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;

}

._9105806f {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;
   animation-delay:2.5s;

}

._a81484af {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;
   animation-delay:3s;

}

._b31d1bb5 {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;
   animation-delay:2s;

}

._c3f3c37c {

   opacity:0;
   animation-name:_a7af7bf0;
   animation-duration:3.5s;
   animation-iteration-count:infinite;
   animation-delay:0.5s;

}

Many thanks to all the wonderful people at Mozilla for everything you do!

Hi team! I have a dev project which uses keyframes to animate some svg elements. This animation starts immediately (page load). The animation has no problems running on chrome and safari but for some reason it has very weird behavior on firefox. The animation, if there is no mouse movement, will simply not play through until the mouse is active in the view port. As soon as the mouse stops, the animation stops. If the dev tools panel is open and the mouse is active in that pane the animation doesn't run either. The active mouse specifically needs to be in the view port for the animation to run. Furthermore if there are no animation-delays properties the animations run fine, however not in the intended order of course. I have attached 2 gif's one showing the animation playing fine on a chrome browser and the other animating every now and then whenever I nudged the mouse. Sadly the mouse doesn't show because "gif". I mainly develop on linux and I can confirm firefox(81.0.164bit) on both linux and macbook have this behavior. I read about malware possibly causing an issue etc but a fresh Pop_OS install exhibited the same behavior. I have resorted to installing chromium which makes me extremely sad. :( I am happy to be as much help as possible, you need a screen capture, more gifs, hell even zoom call, i'll do it in a second. The css is as follows - @keyframes _a7af7bf0 { 0% {opacity:0;} 7% {opacity:1;} 14% {opacity:0;} 100% {opacity:0;} } ._3577a167 { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; animation-delay:1s; } ._719fe403 { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; animation-delay:1.5s; } ._8fab5a1b { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; } ._9105806f { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; animation-delay:2.5s; } ._a81484af { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; animation-delay:3s; } ._b31d1bb5 { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; animation-delay:2s; } ._c3f3c37c { opacity:0; animation-name:_a7af7bf0; animation-duration:3.5s; animation-iteration-count:infinite; animation-delay:0.5s; } Many thanks to all the wonderful people at Mozilla for everything you do!
附加的畫面擷圖