Add Animations class, including pulse.

This commit is contained in:
Patrick Jentsch 2019-09-02 15:22:26 +02:00
parent 6ed260b065
commit d30980bfa9

View File

@ -0,0 +1,7 @@
class Animations {
static async pulseHighlight(statusElement, ms) {
statusElement.classList.add("pulse");
await new Promise(resolve => setTimeout(resolve, ms));
statusElement.classList.remove("pulse");
}
}