idk
This commit is contained in:
parent
1114828000
commit
d963d179f2
2 changed files with 25 additions and 2 deletions
16
test/app.ts
16
test/app.ts
|
|
@ -1,4 +1,4 @@
|
|||
import { AnimationSize } from ".."
|
||||
import { Anchor, AnimationSize, Easing, KeyframeSize, Panel } from ".."
|
||||
|
||||
const animation = AnimationSize(
|
||||
"smooth_loop",
|
||||
|
|
@ -19,4 +19,16 @@ const animation = AnimationSize(
|
|||
},
|
||||
).setLoop(true)
|
||||
|
||||
console.log(animation)
|
||||
const panel = Panel({
|
||||
anchor: Anchor.BOTTOM_LEFT,
|
||||
}).addAnimations(
|
||||
animation,
|
||||
KeyframeSize({
|
||||
from: [10, 10],
|
||||
to: [20, 20],
|
||||
duration: 0.3,
|
||||
easing: Easing.LINEAR,
|
||||
}),
|
||||
)
|
||||
|
||||
console.log(String(panel))
|
||||
|
|
|
|||
Reference in a new issue