Skip to content

hm5-types (source format) / Tween

Interface: Tween ​

Properties ​

PropertyTypeDescription
channels?Partial<Record<TweenChannel, EasingSpec>>expanded mode (Tween detail panel): per-channel independent curves. A channel absent here falls back to easing.
drawOn?"together" | "off"shape tweens whose one key has no shapes (an empty key ↔ lines / fills): absent = the lines are DRAWN ON stroke by stroke, then the fills coloured in (backwards = undrawn); "together" = every stroke at once; "off" = the plain morph (they grow from their centres). See document tween/drawOn.ts.
easingEasingSpeccollapsed mode: one easing drives every channel
loops?Record<string, number>curve tweens only — LOOP FRAMES (owner 2026-11-19): element id → where in the span (a share, like CurveTrackKey.p; may pass 1) that object is back at what it shows on the span's first frame. From there it repeats on its own, whatever the other objects do; its keys at or after it are not used. See document tween/curve.ts (loopedTrack).
motionBlur?MotionBlurreal motion blur (owner 2026-10-30): present = on. Classic tweens and layer tween keys only — a shape tween never blurs.
orders?CurveOrder[]curve tweens only — Z ORDER CHANGES (owner 2026-11-19): from p (a share of the span, > 0) on, the key's objects are drawn in this order (ids bottom → top; an object not named goes on top). A sudden change, never eased; sorted by p. Before the first one = the order of Keyframe.elements. See document tween/curve.ts (curveOrderAt).
orientToPath?booleanclassic tweens on a guided layer: instances turn with the guide line
properties?Record<string, EasingSpec>Tween editor: curves for what is not a transform channel. Keys: "color" (the colour effect; falls back to the alpha channel), "filter" (every filter), "filter.<type>" (one filter kind) and "filter.<type>.<param>" (one parameter). A key falls back to the next broader one, then to easing; see propertyEasing.
rotate?TweenRotateclassic / shape tweens: the turn direction (Flash "Rotate: CW / CCW × N"): absent = the short way; "cw" / "ccw" = that way round to the end angle plus turns whole turns. See tween/evaluate.ts tweenTurn.
shows?Record<string, CurveShow>curve tweens only — WHEN an object is there (owner 2026-11-19: a Delete inside a motion tween no longer cuts the span): element id → shown from a (a share of the span; absent = from the start) up to, not including, b (absent = to the end). No entry = the whole span. See document tween/curve.ts (curveShownAt).
tracks?CurveTrackscurve tweens only: element id (a top-level element of this key) → channel (CurveChannel) → its keys, sorted by p. A channel with no track shows the element's own value all span long. Keys sit at a SHARE of the span (owner 2026-11-07), so a longer / shorter span stretches every curve with it.
type"motion" | "shape" | "curve""motion" = classic tween (transforms / alpha of paired elements); "shape" = the loose shapes morph into the next key's shapes (outline, colours, stroke width, gradient), other elements still move like a classic tween; "curve" = CURVE TWEEN (曲線補間, owner 2026-11-06): no end key — the span's objects are the key's own, each property of each object on its own curve (tracks), edited in the Tween Editor; see tween/curve.ts

HereSplash — 2D animation for the web