diff options
author | Wojtek <stalking@disallow.ed> | 2021-10-31 23:55:32 +0100 |
---|---|---|
committer | Wojtek <stalking@disallow.ed> | 2021-10-31 23:55:32 +0100 |
commit | 69574783196ba1af7f7c428ae8132d7379277c20 (patch) | |
tree | 2a2f9a1bb13f07edb120eb87f716e0b626f0a229 /make_face.sh | |
download | chrysantemum-69574783196ba1af7f7c428ae8132d7379277c20.tar.gz chrysantemum-69574783196ba1af7f7c428ae8132d7379277c20.zip |
Diffstat (limited to 'make_face.sh')
-rwxr-xr-x | make_face.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/make_face.sh b/make_face.sh new file mode 100755 index 0000000..376cbec --- /dev/null +++ b/make_face.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +ANIMATION_DELAY=$(bc <<EOF +$(cat _flower_delay) - 0.15 +EOF + ) + +cat <<EOF + <div class="smile"> + <img style="animation-delay: ${ANIMATION_DELAY}s;" src="./smile.svg" alt="flower smile" draggable="false"> + </div> + <div class="eyes"> + <img style="animation-delay: ${ANIMATION_DELAY}s;" src="./eyes.svg" alt="flower eyes" draggable="false"> + </div> +EOF + +FACE_APPEAR_DURATION=0.3 # must match animation-duration in chryzantem.html.template + +bc >_face_delay <<EOF +$ANIMATION_DELAY + $FACE_APPEAR_DURATION +EOF |