Explorar el Código

slow motion opening front cover

master
farhan hace 2 años
padre
commit
4b89777c92
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      resources/views/digital-card.blade.php

+ 1
- 1
resources/views/digital-card.blade.php Ver fichero

104
                         // Smooth scroll using requestAnimationFrame
104
                         // Smooth scroll using requestAnimationFrame
105
                         function scrollStep() {
105
                         function scrollStep() {
106
                             if (currentScroll < targetScroll) {
106
                             if (currentScroll < targetScroll) {
107
-                                window.scrollTo(0, currentScroll += 5); // Adjust speed here (e.g., +=5)
107
+                                window.scrollTo(0, currentScroll += 1); // Adjust speed here (e.g., +=5)
108
                                 requestAnimationFrame(scrollStep);
108
                                 requestAnimationFrame(scrollStep);
109
                             }
109
                             }
110
                         }
110
                         }

Loading…
Cancelar
Guardar