initial commit
[anonymous-chrysantemum.git] / make_face.sh
blob376cbec6802f91a7c5d6998b1a184a3b21d97a63
1 #!/bin/sh
3 ANIMATION_DELAY=$(bc <<EOF
4 $(cat _flower_delay) - 0.15
5 EOF
8 cat <<EOF
9 <div class="smile">
10 <img style="animation-delay: ${ANIMATION_DELAY}s;" src="./smile.svg" alt="flower smile" draggable="false">
11 </div>
12 <div class="eyes">
13 <img style="animation-delay: ${ANIMATION_DELAY}s;" src="./eyes.svg" alt="flower eyes" draggable="false">
14 </div>
15 EOF
17 FACE_APPEAR_DURATION=0.3 # must match animation-duration in chryzantem.html.template
19 bc >_face_delay <<EOF
20 $ANIMATION_DELAY + $FACE_APPEAR_DURATION
21 EOF