nopaque/app/static/js/Animations.js

8 lines
213 B
JavaScript

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