summaryrefslogtreecommitdiff
path: root/make_stem.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make_stem.sh')
-rwxr-xr-xmake_stem.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/make_stem.sh b/make_stem.sh
new file mode 100755
index 0000000..8e758a9
--- /dev/null
+++ b/make_stem.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+ANIMATION_DELAY=$(bc <<EOF
+$(cat _face_delay) + 0.2
+EOF
+ )
+
+cat <<EOF
+ <div class="stem" style="animation-delay: ${ANIMATION_DELAY}s;"></div>
+EOF
+
+STEM_APPEAR_DURATION=0.6 # must match animation-duration in chryzantem.html.template
+
+bc >_stem_delay <<EOF
+$ANIMATION_DELAY + $STEM_APPEAR_DURATION
+EOF