Animation update and added timer

This commit is contained in:
Robert Jelic
2025-04-20 10:35:10 +02:00
parent 376cf10a1b
commit d8c7960897
2 changed files with 4 additions and 1 deletions

View File

@@ -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'},

View File

@@ -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()
```