From f91466f1bf188915a63d5a2c8cdf12856ec0c65d Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 30 Apr 2021 18:37:56 +0200 Subject: [PATCH] Add pulse class after mount timeout 2sec. --- frontend/components/VinlottisPage.vue | 11 ++++++++--- frontend/styles/animations.scss | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 frontend/styles/animations.scss diff --git a/frontend/components/VinlottisPage.vue b/frontend/components/VinlottisPage.vue index 7525376..e759245 100644 --- a/frontend/components/VinlottisPage.vue +++ b/frontend/components/VinlottisPage.vue @@ -94,7 +94,11 @@ export default { return Notification.permission !== "granted" || !this.pushAllowed || localStorage.getItem("push") == null; } }, - async mounted() { + mounted() { + setTimeout(() => { + document.getElementsByClassName("participate-button")[0].classList.add("pulse"); + }, 1800); + this.$on("push-allowed", () => { this.pushAllowed = true; }); @@ -121,8 +125,9 @@ export default {