nopaque/app/static/js/Animations.js

8 lines
213 B
JavaScript
Raw Normal View History

2019-09-02 13:22:26 +00:00
class Animations {
static async pulse(statusElement, ms) {
2019-09-02 13:22:26 +00:00
statusElement.classList.add("pulse");
await new Promise(resolve => setTimeout(resolve, ms));
statusElement.classList.remove("pulse");
}
}