LiminaliaLiminalia

@kanim

Animate something chosen by name or layer with an animation defined by @keyframe (transforms and CSS properties)

direction

loop

keep

Parameters

name
Text
Name of the target to animate (a character ID, or the name of an @image or @layer-text). Write either this or layer
layer
fg0 / fg1 / fg2
Layer to animate (everything on it; fg0 includes sprites). Write either this or name
keyframeRequired
Text
Name of the @keyframe
time
Time (300ms, 1.5s)
Default: 1s
Time for one run of the animation
easing
Text
Default: ease
Easing between keyframes (a CSS timing function or a jQuery easing name)
count
Integer
Default: 1
Number of repetitions
loop
true / false
Default: false
Repeat until stopped (count isn't used; stop it with @stop-kanim)
delay
Time (300ms, 1.5s)
Default: 0ms
Time before it starts moving
direction
normal / reverse / alternate / alternate-reverse
Default: normal
Direction (CSS animation-direction)
keep
true / false
Default: true
Keep the final state after it finishes (false returns to the original state)
reset
true / false
Default: false
Clear the transforms from the previous @kanim before animating (false continues from the previous state)
wait
true / false
Default: false
Wait until the animation finishes before continuing (never waits with loop=true)
skip
true / false
Default: true
Lets a click, the Enter key or a tap finish the effect at once. false prevents it (while skipping, it ends at once anyway)

From TyranoScript

When you import with lim import, these tags become this command:

  • [kanim]
  • [xanim]

How each attribute converts, and what isn't converted, is in TyranoScript import.