diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-11-21 10:49:09 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-11-21 10:49:09 +0100 |
commit | 29a86d3d4ec8ee2241edb7384fe8613ff6382ac9 (patch) | |
tree | 1804623a73c21b4796439bef52b45025fca2eb01 /make_stem.sh | |
download | birthday-flower-css-animation-29a86d3d4ec8ee2241edb7384fe8613ff6382ac9.tar.gz birthday-flower-css-animation-29a86d3d4ec8ee2241edb7384fe8613ff6382ac9.zip |
initial commit
Diffstat (limited to 'make_stem.sh')
-rwxr-xr-x | make_stem.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/make_stem.sh b/make_stem.sh new file mode 100755 index 0000000..c84a892 --- /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 kwiatuszek.html.template + +bc >_stem_delay <<EOF +$ANIMATION_DELAY + $STEM_APPEAR_DURATION +EOF |