feat: more things for this.

This commit is contained in:
Asaki Yuki 2026-01-28 10:45:47 +07:00
parent 53375ea11c
commit 7a43d233e3
8 changed files with 127 additions and 35 deletions

View file

@ -1,34 +1 @@
import { Anchor, AnimationOffset, Easing, KeyframeSize, Panel } from ".."
const animation = AnimationOffset(
"smooth_loop",
{
to: [10, 10],
duration: 1.5,
},
{
to: [1, 1],
},
1,
{
from: [10, 10],
to: [20, 20],
},
{
to: [1, 1],
},
).setLoop(true)
const panel = Panel({
anchor: Anchor.BOTTOM_LEFT,
}).addAnimations(
animation,
KeyframeSize({
from: [10, 10],
to: [20, 20],
duration: 0.3,
easing: Easing.LINEAR,
}),
)
console.log(animation, panel)
import { Panel } from ".."