summaryrefslogtreecommitdiff
path: root/.zs/components/wavy
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2026-07-25 15:39:11 +0200
committerdelta <darkussdelta@gmail.com>2026-07-25 15:39:11 +0200
commit6979ec35432ae68c01644b37f06fb0164d9ea312 (patch)
tree00d17b072d80ab5dfa94026a9b40c73f32784c00 /.zs/components/wavy
parentf1290dc0d7fb38e3647d08c7592b4ff83a1c0624 (diff)
fix mobile layout
Diffstat (limited to '.zs/components/wavy')
-rwxr-xr-x.zs/components/wavy23
1 files changed, 20 insertions, 3 deletions
diff --git a/.zs/components/wavy b/.zs/components/wavy
index 645442e..20c4a70 100755
--- a/.zs/components/wavy
+++ b/.zs/components/wavy
@@ -14,13 +14,30 @@ local TEXT = {
local acc = {}
local i = 0
-for char in TEXT[name or "hey"]:gmatch(".") do
- table.insert(acc, {
+for word in TEXT[name or "hey"]:gmatch("[^ ]+") do
+ local word_acc = {}
+
+ for char in word:gmatch(".") do
+ table.insert(word_acc, {
+ tag = "span",
+ style = "animation-delay:" .. (-800 * i) .. "ms",
+ char
+ })
+ i = i + 1
+ end
+
+ table.insert(word_acc, {
tag = "span",
style = "animation-delay:" .. (-800 * i) .. "ms",
- char
+ " "
})
+
i = i + 1
+
+ table.insert(acc, {
+ tag = "div",
+ word_acc
+ })
end
print(html {