nopaque/app/static/js/Animations.js

8 lines
222 B
JavaScript
Raw Normal View History

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