add animation, stop automatic slideshow when interacted with

This commit is contained in:
2024-02-01 23:52:53 +01:00
parent 132828389b
commit 8c1546ef7f
3 changed files with 22 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
{{ else if eq $mode "slideshow" }}
{{ partial "slideshow" (dict "imgs" $imgs "galno" $galno) }}
{{/* Set autorotate timer for slideshow */}}
<script>setInterval(moveSlideshowItem, 5000, {{ $galno }}, 1);</script>
<script>const autoSlideshow = setInterval(moveSlideshowItem, 5000, {{ $galno }}, 1);</script>
{{ end }}
{{/* The Modal/Lightbox */}}