From d8c7960897631db4f2bf53f7f0219848bf8e7418 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sun, 20 Apr 2025 10:35:10 +0200 Subject: [PATCH] Animation update and added timer --- docs/.vitepress/config.mts | 1 + docs/guides/animations.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 2371424..4b913cb 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -113,6 +113,7 @@ export default defineConfig({ {text: 'Table', link: 'references/elements/Table'}, {text: 'TextBox', link: 'references/elements/TextBox'}, {text: 'Tree', link: 'references/elements/Tree'}, + {text: 'Timer', link: 'references/elements/Timer'}, {text: 'ScrollBar', link: 'references/elements/ScrollBar'}, {text: 'Slider', link: 'references/elements/Slider'}, {text: 'ProgressBar', link: 'references/elements/ProgressBar'}, diff --git a/docs/guides/animations.md b/docs/guides/animations.md index 0aaf052..6576a12 100644 --- a/docs/guides/animations.md +++ b/docs/guides/animations.md @@ -17,6 +17,8 @@ element:animate() :move(x, y, duration) -- Animate move :moveOffset(x, y, duration) -- Animate offset :resize(w, h, duration) -- Animate size + :number(property, targetNumber, duration) -- Animate number + :entries(property, entryList, duration) -- Cycles through a list of values (e.g. colors, text) for any property over the specified duration :morphText(property, targetText, duration) -- Animate text :typewrite(property, targetText, duration) -- Animate text :fadeText(property, targetText, duration) -- Animate text @@ -53,7 +55,7 @@ element:animate() :sequence() :resize(5, 5, 1) -- Starts after position completes :sequence() - :morphText("text", "newText" 1) -- simultaneously + :morphText("text", "newText" 1) -- starts after resizing completes :start() ```