diff --git a/app/static/js/Animations.js b/app/static/js/Animations.js new file mode 100644 index 00000000..dcbe3f57 --- /dev/null +++ b/app/static/js/Animations.js @@ -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"); + } +}