Pārlūkot izejas kodu

pulsating rsvp icon

master
azri 4 mēnešus atpakaļ
vecāks
revīzija
120593e84c
2 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 5
    0
      resources/js/app.js
  2. 2
    2
      resources/views/components/navbar.blade.php

+ 5
- 0
resources/js/app.js Parādīt failu

@@ -11,6 +11,11 @@ document.addEventListener('DOMContentLoaded', function () {
11 11
     reset() // reset everrything to ensure smooth
12 12
     sessionStorage.setItem("initial-load", "true"); // will be used by click event
13 13
 
14
+    let rsvpBtn = document.getElementById("rsvp-button");
15
+    rsvpBtn.addEventListener('click', function(){
16
+        this.classList.remove("animate__flash");
17
+    })
18
+
14 19
 });
15 20
 
16 21
 

+ 2
- 2
resources/views/components/navbar.blade.php Parādīt failu

@@ -1,6 +1,6 @@
1 1
 <div class="fixed bottom-0 left-0 w-full bg-navbarcolor shadow-lg rounded-t-xl">
2 2
     <div class="flex justify-around py-4">
3
-        <a onclick="rsvp.showModal()" class="text-babyblue text-xl">
3
+        <a id="rsvp-button" onclick="rsvp.showModal()" class="text-babyblue text-xl animate__animated animate__flash animate__infinite animate__delay-4s">
4 4
             <i class="fa-solid fa-envelope-open-text"></i>
5 5
         </a>
6 6
         <a onclick="emoney.showModal()" class="text-babyblue text-xl">
@@ -21,4 +21,4 @@
21 21
     @include('modals.contact-modal')
22 22
     @include('modals.location-modal')
23 23
     @include('modals.calendar-modal')
24
-</div>
24
+</div>

Notiek ielāde…
Atcelt
Saglabāt