simonlindholm / toggle-gifs

Toggle animated GIFs (Firefox extension)

Home Page:https://addons.mozilla.org/en-US/firefox/addon/toggle-animated-gifs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS property "animation"

tkzv opened this issue · comments

commented

Example of the site which shows animated background despite the extension: http://andreasbruhn.com/

If you check its CSS — http://andreasbruhn.com/css/style.css — you'll see "animation" property. It would be better if your extension was able to stop such animations too.

The most reasonable way I can think of for doing this would be to add a stylesheet into every page with:

* {
  animation: none !important;
  -moz-animation: none !important;
  transition: none !important; /* for bonus points */
  -moz-transition: none !important;
}

However, this feels really out of scope for a GIF controlling extension... In addition it would probably cause subtle breakages with sites depending on animationend and transitionend firing, or elements not ending up in their final positions. Hence I don't feel inclined to add this functionality to the addon. You could try adding it to your userContent.css, though.