mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +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");
|
|
}
|
|
}
|