Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Commit

Permalink
Allowing disableCSSAnimation option to disable pseudo elements animat…
Browse files Browse the repository at this point in the history
…ions

Adding pseudo elements selectors to style injection that disables the CSS animations in order for it to block animations on pseudo elements.
  • Loading branch information
AndrewLunko committed Mar 5, 2021
1 parent 980a7d4 commit dde48c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/clientSideScripts/setCustomCss.ts
Expand Up @@ -7,9 +7,9 @@ export default function setCustomCss(cssOptions: CssOptions): void {
if (document.head == null) {
return;
}

// disabling CSS animations for everything including pseudo elements
const disableTransformationsTransitionsAnimations = `
* {
*, *::before, *::after {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Expand Down

0 comments on commit dde48c4

Please sign in to comment.