Skip to content

hm5-types (source format) / CameraKey

Interface: CameraKey ​

A camera keyframe's pose (Keyframe.camera): where the frame is from that key on. Camera keys ALWAYS tween to the next camera key (no tween flag); easing = the curve toward it, absent = linear. Scale tweens geometrically so a zoom feels even.

Properties ​

PropertyTypeDescription
easing?EasingSpec-
persp?CameraPerspectivethe scene's 3D perspective from this key on (owner 2026-11-08, plan R10 — dolly zoom): field of view and vanishing point (stage coordinates; absent = the scene's). Tweens with the camera; a key without one holds the scene's own (Scene.perspective).
rotationnumberradians
scalenumber> 1 zooms in (the frame covers 1/scale of its pixel size)
xnumbercentre of the frame, world units
ynumber-

HereSplash — 2D animation for the web