This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/test/app.ts
2026-01-27 13:18:08 +07:00

34 lines
470 B
TypeScript

import { Anchor, AnimationSize, Easing, KeyframeSize, Panel } from ".."
const animation = AnimationSize(
"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)