Fix method naming and add Animations.js to base template.

This commit is contained in:
Patrick Jentsch
2019-09-02 15:24:39 +02:00
parent ff837aa943
commit bec48e5f39
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class Animations {
static async pulseHighlight(statusElement, ms) {
static async pulse(statusElement, ms) {
statusElement.classList.add("pulse");
await new Promise(resolve => setTimeout(resolve, ms));
statusElement.classList.remove("pulse");