Orbit ring
Signature
Shows many things connected to one central object. A signature look. Use it only when the brand's style calls for it, never as a default.
Rendered video, with motion blur.
0.00 / 6.00 s
Live preview, driven by the code below. No motion blur.
What it does
Items circle an object, passing behind it and in front.
Curve
Linear
Values
S is the frame's short side, 1080 px at 1080p. Unmeasured inputs in the preview are illustrations, not rules.
| Fact | Value |
|---|---|
Purpose | Loop |
Acts on | Group |
Typical length | 6 s (180 frames at 30 fps), preview; runs the whole scene |
Caution | Keep both layers and never stop the loop. |
| Property | Value |
|---|---|
Layers | Back ring, object, front ring |
Layer choice | Sign of cos(angle) |
Radius | 85% S (920 px) |
RotateX | -8 deg |
Spin | 18 deg/s plus 18 deg offset, linear |
Arrival scale | 0.3 to 1 |
Arrival radius | 60% to 100% |
Export samples | 12; 1 when still |
Code
ts
export const seg = (t: number, a: number, b: number) => Math.max(0, Math.min(1, (t - a) / (b - a)));
export const lerp = (a: number, b: number, k: number) => a + (b - a) * k;
export const out = (k: number) => (k >= 1 ? 1 : 1 - Math.pow(2, -10 * k));
export const io = (k: number) => (k < 0.5 ? 16 * k ** 5 : 1 - Math.pow(-2 * k + 2, 5) / 2);
export const inn = (k: number) => k * k * k;
export const cubicOut = (k: number) => 1 - Math.pow(1 - k, 3);
export const h = (i: number, j: number) => { const x = Math.sin(i * 127.1 + j * 311.7) * 43758.5453; return x - Math.floor(x); };
export const phase = (t: number, start = 0, duration = 0.6) => seg(t, start, start + duration);
export const easeInOut = (p: number) => p < 0.5 ? 4 * p ** 3 : 1 - (-2 * p + 2) ** 3 / 2;
export function orbitRing(t: number, index = 0, count = 8, arrivalDuration = 1.2) {
const k = out(phase(t, 0, arrivalDuration));
const angle = (18 + 18 * t + index * 360 / count) * Math.PI / 180;
const radius = 920 * lerp(0.6, 1, k);
return { x: Math.sin(angle) * radius, y: Math.cos(angle) * radius * Math.sin(-8 * Math.PI / 180), front: Math.cos(angle) >= 0, scale: lerp(0.3, 1, k), rotateX: -8 };
}Rejected variants
| Tried | Verdict |
|---|---|
An orbit drawn behind the object it circles | Rejected: three depth layers |
A loop stopping and starting | Rejected: runs the whole scene |
Best practices
| Use it for | Avoid | Rejected before |
|---|---|---|
Items around one object | One orbit layer | An orbit drawn behind the object it circles |
A continuous orbit | Stopping the loop | A loop stopping and starting |
Reduced motion: a simple opacity fade over 0.2 s.