mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Add Animations class, including pulse.
This commit is contained in:
parent
6ed260b065
commit
d30980bfa9
7
app/static/js/Animations.js
Normal file
7
app/static/js/Animations.js
Normal file
@ -0,0 +1,7 @@
|
||||
class Animations {
|
||||
static async pulseHighlight(statusElement, ms) {
|
||||
statusElement.classList.add("pulse");
|
||||
await new Promise(resolve => setTimeout(resolve, ms));
|
||||
statusElement.classList.remove("pulse");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user