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

Commit

Permalink
Merge pull request #79 from AndrewLunko/patch-1
Browse files Browse the repository at this point in the history
Allowing disableCSSAnimation option to disable pseudo elements animation
  • Loading branch information
wswebcreation committed Mar 6, 2021
2 parents 980a7d4 + 228bfc1 commit 142de62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/clientSideScripts/__snapshots__/setCustomCss.spec.ts.snap
Expand Up @@ -4,7 +4,7 @@ exports[`setCustomCss should be able to set the custom css with the animations d

exports[`setCustomCss should be able to set the custom css with the animations disabled 2`] = `
"body{padding-top:6px !important}body{padding-bottom:6px !important}
* {
*, *::before, *::after {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Expand All @@ -24,7 +24,7 @@ exports[`setCustomCss should be able to set the custom css with the default opti

exports[`setCustomCss should be able to set the custom css with the with padding set to 0 1`] = `
"body{padding-top:6px !important}body{padding-bottom:6px !important}
* {
*, *::before, *::after {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Expand All @@ -40,7 +40,7 @@ exports[`setCustomCss should be able to set the custom css with the with padding

exports[`setCustomCss should be able to set the custom css with the with padding set to 0 2`] = `
"body{padding-top:6px !important}body{padding-bottom:6px !important}
* {
*, *::before, *::after {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Expand All @@ -52,7 +52,7 @@ exports[`setCustomCss should be able to set the custom css with the with padding
-ms-animation: none !important;
animation: none !important;
}body{padding-top:6px !important}body{padding-bottom:6px !important}
* {
*, *::before, *::after {
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
Expand Down
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 142de62

Please sign in to comment.