diff options
| author | Paul Buetow <paul@buetow.org> | 2022-03-05 12:24:15 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-03-05 12:24:15 +0000 |
| commit | f47d362dbffbbce79ef11f4fa4ec1467846cc583 (patch) | |
| tree | fdef945dff6a86003aee1d5afb0d92431a9bfa8c /src | |
| parent | 65d756e975483704ceebf7551f7a855e5aafdfc8 (diff) | |
more animations
Diffstat (limited to 'src')
| -rwxr-xr-x | src/photoalbum.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/photoalbum.sh b/src/photoalbum.sh index d4c6bd1..882b437 100755 --- a/src/photoalbum.sh +++ b/src/photoalbum.sh @@ -93,14 +93,15 @@ randomphoto () { } random_animation_css_class () { + local -r speed="$1"; shift cat <<END | grep -v fading | sort -R | head -n 1 -animate-fading -animate-opacity -animate-top -animate-left -animate-right -animate-bottom -animate-zoom +animate-fading-$speed +animate-opacity-$speed +animate-top-$speed +animate-left-$speed +animate-right-$speed +animate-bottom-$speed +animate-zoom-$speed END } @@ -150,7 +151,7 @@ albumhtml () { fi # Preview page - export animation_class=$(random_animation_css_class) + export animation_class=$(random_animation_css_class slow) template preview "$name.html" # View page @@ -158,7 +159,7 @@ albumhtml () { export show_header_bar='no' template header "$num-$i.html" - export animation_class='animate-none' + export animation_class=$(random_animation_css_class fast) template view "$num-$i.html" template footer "$num-$i.html" |
