Browse Source

add scroll instruction

master
azri 4 months ago
parent
commit
8ff378b978

BIN
public/assets/scrolling.png View File


+ 8
- 1
resources/js/app.js View File

16
         this.classList.remove("animate__flash");
16
         this.classList.remove("animate__flash");
17
     })
17
     })
18
 
18
 
19
+    let scrollerInd = document.getElementById("scroller");
20
+
21
+    setTimeout(()=>{
22
+        window.addEventListener('scroll', function(){
23
+            scrollerInd.remove();
24
+        })
25
+    },1000)
19
 });
26
 });
20
 
27
 
21
 
28
 
24
     let initLoad = sessionStorage.getItem("initial-load")
31
     let initLoad = sessionStorage.getItem("initial-load")
25
 
32
 
26
     let pointer = document.getElementById("pointer")
33
     let pointer = document.getElementById("pointer")
27
-    pointer.remove()
34
+    if(pointer) pointer.remove()
28
 
35
 
29
     // parts is intro cover
36
     // parts is intro cover
30
     let parts = document.getElementsByClassName("part");
37
     let parts = document.getElementsByClassName("part");

+ 2
- 1
resources/views/components/main-event.blade.php View File

1
-<div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor">
1
+<div class="flex flex-col gap-5 w-4/5 mt-44 mb-40 text-navbarcolor relative">
2
     <div class="flex justify-center fade-element">
2
     <div class="flex justify-center fade-element">
3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
4
     </div>
4
     </div>
29
             <p class="font-semibold text-sm">SULTAN HAJI AHMAD SHAH</p>
29
             <p class="font-semibold text-sm">SULTAN HAJI AHMAD SHAH</p>
30
         </div>
30
         </div>
31
     </div>
31
     </div>
32
+    <img id="scroller" src="{{asset('assets/scrolling.png')}}" alt="" class="absolute animate__animated animate__fadeInUp animate__infinite" width="35" height="35" style="bottom: 50%; right:20px">
32
 </div>
33
 </div>

Loading…
Cancel
Save