feat: added disable_animations flag (#643)

This commit is contained in:
Anurag Hazra
2020-11-14 18:52:36 +05:30
committed by GitHub
parent 94aeabe300
commit f7f11d0b25
5 changed files with 15 additions and 4 deletions
+4 -3
View File
@@ -128,10 +128,11 @@ class Card {
}
${this.css}
${process.env.NODE_ENV === "test" ? "" : getAnimations()}
${
process.env.NODE_ENV === "test" || !this.animations
? ""
: getAnimations()
this.animations === false
? `* { animation-duration: 0s !important; animation-delay: 0s !important; }`
: ""
}
</style>