mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 03:14:19 +00:00
8 lines
213 B
JavaScript
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");
|
|
}
|
|
}
|