Shakes the stat element if shouldShake is true, otherwise removes the shake class.
shouldShake
shake
When adding the shake class, removes it after 250 ms.
Generated using TypeDoc
Shakes the stat element if
shouldShakeis true, otherwise removes theshakeclass.When adding the
shakeclass, removes it after 250 ms.