feat: smart animation mode
This commit is contained in:
parent
7534a613cb
commit
1114828000
11 changed files with 207 additions and 44 deletions
26
test/app.ts
26
test/app.ts
|
|
@ -1,10 +1,22 @@
|
|||
import { Animation, AnimType } from ".."
|
||||
import { AnimationSize } from ".."
|
||||
|
||||
const animation = new Animation(
|
||||
AnimType.OFFSET,
|
||||
const animation = AnimationSize(
|
||||
"smooth_loop",
|
||||
{
|
||||
from: [0, 0],
|
||||
to: [100, 100],
|
||||
to: [10, 10],
|
||||
duration: 1.5,
|
||||
},
|
||||
123,
|
||||
).setLoop(false)
|
||||
{
|
||||
to: [1, 1],
|
||||
},
|
||||
1,
|
||||
{
|
||||
from: [10, 10],
|
||||
to: [20, 20],
|
||||
},
|
||||
{
|
||||
to: [1, 1],
|
||||
},
|
||||
).setLoop(true)
|
||||
|
||||
console.log(animation)
|
||||
|
|
|
|||
Reference in a new issue