@kanim
Animate something chosen by name or layer with an animation defined by @keyframe (transforms and CSS properties)
- Standard plugin
- Can be written without the name
name
direction
loop
keep
Parameters
nameText
Name of the target to animate (a character ID, or the name of an @image or @layer-text). Write either this or layer
layerfg0 / fg1 / fg2
Layer to animate (everything on it; fg0 includes sprites). Write either this or name
keyframeRequiredText
Name of the @keyframe
timeTime (300ms, 1.5s)
Default: 1sTime for one run of the animation
easingText
Default: easeEasing between keyframes (a CSS timing function or a jQuery easing name)
countInteger
Default: 1Number of repetitions
looptrue / false
Default: falseRepeat until stopped (count isn't used; stop it with @stop-kanim)
delayTime (300ms, 1.5s)
Default: 0msTime before it starts moving
directionnormal / reverse / alternate / alternate-reverse
Default: normalDirection (CSS animation-direction)
keeptrue / false
Default: trueKeep the final state after it finishes (false returns to the original state)
resettrue / false
Default: falseClear the transforms from the previous @kanim before animating (false continues from the previous state)
waittrue / false
Default: falseWait until the animation finishes before continuing (never waits with loop=true)
skiptrue / false
Default: trueLets 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:
How each attribute converts, and what isn't converted, is in TyranoScript import.