From d30980bfa96424199f6213b4f720f51599abc5b6 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch <p.jentsch@uni-bielefeld.de> Date: Mon, 2 Sep 2019 15:22:26 +0200 Subject: [PATCH] Add Animations class, including pulse. --- app/static/js/Animations.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/static/js/Animations.js 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"); + } +} -- GitLab