add animation, stop automatic slideshow when interacted with
This commit is contained in:
@@ -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 */}}
|
||||
|
||||
Reference in New Issue
Block a user