Easing
An easing curve is what turns a duration into a feel. Bm.Tween takes one as its
second argument and covers the full easings.net family - the cubic default
(In / Out / InOut) plus Sine, Quad, Quart, Quint, Expo and
Circ, the overshooting Back and Anticipate, and the oscillating
Elastic and Bounce - along with steps() staircases and arbitrary
cubic-béziers. Curves the browser can express are sampled to linear() and handed to
the compositor; the rest run on the C# frame loop.
Named presets
Each row below plays the same 240 px move over the same 0.9 s, so the only thing
that differs is the curve. Almost every family comes in three directions, and the direction is the
part to choose first: In starts slow and arrives fast - right for something leaving -
Out starts fast and settles, which is what an entrance wants, and InOut is slow at
both ends, for a move between two resting places. Within a direction the families differ in how hard they
lean: Sine barely, Quad through Quint and Expo more and
more, Circ abruptly. Back pulls back past its start or overshoots its end,
Anticipate pulls back before it sets off, and Elastic and Bounce keep
moving after they arrive. Switch direction to see all 32.
Bm.Tween() with no arguments is a 0.3 s BmotionEase.Out - the plain
In / Out / InOut rows are the cubic curve, the default.
A keyframe sequence can take a different curve for every leg instead of one for the whole run - that is
eases, shown on the Keyframes page.
Custom cubic-bézier
When no preset is the curve you want, hand Bm.Tween the four control
numbers directly with bezier: [x1, y1, x2, y2] - the same values CSS
cubic-bezier() takes, and the same values a design tool exports. A
y outside 0..1 is what produces anticipation and overshoot.
Stepped easing
Bm.Tween(steps: n, stepJump: …) maps to CSS steps(): instead of
a continuous curve the progress advances in n discrete jumps - the sprite-sheet and
ticking-counter look. stepJump decides where those jumps fall:
End holds the first frame and jumps on the way out, Start jumps
immediately, None keeps both endpoints, and Both skips both.