CineCode
Reference

Easing

Easing equations and modes for .ease().

.ease(EQUATION, MODE) retargets the previous animation with an easing curve. You can also build a reusable curve with ease(EQUATION, MODE) and pass it around.

code.slide_up(0, 24).ease(CUBIC, EASE_OUT);

let snappy = ease(BACK, EASE_OUT);
title.fade_in(0, 20).ease(snappy);

Equations

EquationFeel
LINEARConstant speed (no easing).
SINEGentle.
QUADMild acceleration.
CUBICStandard, natural.
QUARTStronger.
QUINTVery strong.
EXPODramatic, exponential.
CIRCCircular arc.
BACKOvershoots slightly.
ELASTICSpringy oscillation.
BOUNCEBounces at the end.

Modes

ModeDescription
EASE_INSlow start, fast finish.
EASE_OUTFast start, slow finish.
EASE_IN_OUTSlow at both ends.
EASE_OUT_INFast in the middle.
Easing equations and modes compared.
Files that made this video

A gallery scene showing easing curves and tween presets.

codescene.toml
Project manifest: output size, theme, scene order, transitions, and shader names.
Open full file
scenes = ["scenes/intro.ccs", "scenes/terrain.ccs", "scenes/pathfind.ccs", "scenes/particles.ccs", "scenes/graph.ccs", "scenes/life.ccs", "scenes/boids.ccs", "scenes/tweens.ccs", "scenes/inserts.ccs", "scenes/edit.ccs", "scenes/edit_source.ccs", "scenes/editor_theme.ccs", "scenes/font_set.ccs", "scenes/remove_styles.ccs", "scenes/morph.ccs", "scenes/shapes.ccs", "scenes/effects.ccs"]
theme = "dark_documentary"

[episode]
title = "How Rivers Form"

[output]
fps = 30
width = 1280
height = 720

[shaders]
aurora = "shaders/aurora.wgsl"
glitch = "shaders/glitch.wgsl"
scanlines = "shaders/scanlines.wgsl"

[transition]
kind = "crossfade"
frames = 18
UseEquation / Mode
EntrancesCUBIC / EASE_OUT
ExitsCUBIC / EASE_IN
Playful popBACK / EASE_OUT
Bouncy arrivalBOUNCE / EASE_OUT
Camera movesSINE / EASE_IN_OUT

See also: Use easing and tweens.

On this page