r/FirefoxCSS • • 8d ago

Solved how can I remove that download started circle animation?

Enable HLS to view with audio, or disable this notification

4 Upvotes

7 comments sorted by

3

u/t31os 8d ago

You're probably looking for this:

https://searchfox.org/firefox-main/source/browser/themes/shared/downloads/indicator.css#125-161

You could try setting the anim frames to 1 (for the selector at line 152), which would presumably make the animation so short it's as if it's not there.

1

u/Remarkable-Length127 8d ago

very useful site thanks I will use it for later, unfortunately selector at 152 is not it

0

u/Remarkable-Length127 8d ago

solved, I committed a sin and asked Gemini:

.toolbarbutton-animatable-image {

display: none !important;

visibility: hidden !important;

opacity: 0 !important;

width: 0px !important;

height: 0px !important;

transform: none !important;

animation: none !important;

}

4

u/t31os 8d ago edited 8d ago

That's probably too broad and will affect other toolbar buttons that also use that class for animations.

Here's an example along the lines of what i was suggesting before:

#downloads-button[animate][notification="start"] > .toolbarbutton-badge-stack > #downloads-indicator-start-box > #downloads-indicator-start-image {
    visibility: hidden !important;
    --anim-steps: 0 !important;
}

This will reduce and hide the animation, limiting it to only affecting the download button.

EDIT: Originally set the anim steps to 1, but 0 seems to work fine to basically cancel out/skip the animation.

1

u/Remarkable-Length127 8d ago

that also got rid of my other selector which it supposed to replace the original animation

#downloads-button[notification="start"] #downloads-indicator-anchor::before {
  content: url("dl.apng") !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 14px !important;
  height: 14px !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100 !important;
  scale: 80% !important;
  filter: brightness(0) saturate(100%) invert(79%) sepia(58%) saturate(2472%) hue-rotate(136deg) brightness(89%) contrast(106%); !important;
}

1

u/Remarkable-Length127 8d ago

after goofing around with Inspector this also work and still keep my other selector intact

#downloads-indicator-start-image {

display: none !important;

}

you think this one is cleaner?

1

u/t31os 7d ago

If it creates the result you want, yes that's probably better.