Explorar el Código

add scroll instruction

master
azri hace 4 meses
padre
commit
8ff378b978

BIN
public/assets/scrolling.png Ver fichero


+ 8
- 1
resources/js/app.js Ver fichero

@@ -16,6 +16,13 @@ document.addEventListener('DOMContentLoaded', function () {
16 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,7 +31,7 @@ document.addEventListener('click', function () {
24 31
     let initLoad = sessionStorage.getItem("initial-load")
25 32
 
26 33
     let pointer = document.getElementById("pointer")
27
-    pointer.remove()
34
+    if(pointer) pointer.remove()
28 35
 
29 36
     // parts is intro cover
30 37
     let parts = document.getElementsByClassName("part");

+ 2
- 1
resources/views/components/main-event.blade.php Ver fichero

@@ -1,4 +1,4 @@
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 2
     <div class="flex justify-center fade-element">
3 3
         <p class="font-semibold text-sm">WALIMATULURUS</p>
4 4
     </div>
@@ -29,4 +29,5 @@
29 29
             <p class="font-semibold text-sm">SULTAN HAJI AHMAD SHAH</p>
30 30
         </div>
31 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 33
 </div>

Loading…
Cancelar
Guardar