nopaque/app/static/js/Animations.js
2019-09-02 15:22:26 +02:00

8 lines
222 B
JavaScript

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