Slider Progress Bar

A 0–100 Slider Control drives a progress bar's fill width — keyframe the slider, not the shape.

Expression Code
// Slider Progress Bar
// Apply to the shape layer's Rectangle Path 1 > Size
// Add a Slider Control named "Progress" (0-100)
fullWidth = 800; // Bar width at 100%
barHeight = 12; // Bar thickness
pct = clamp(effect("Progress")("Slider"), 0, 100);
[fullWidth * pct / 100, barHeight];
// Companion — apply to Rectangle Path 1 > Position so the
// bar grows from its left edge instead of the centre:
// fullWidth = 800;
// pct = clamp(effect("Progress")("Slider"), 0, 100);
// [(fullWidth * pct / 100) / 2, 0];
Make a shape layer named "Bar" with a Rectangle path, add a Slider Control named "Progress", and apply the expression to the Rectangle Path's Size. Add the commented companion expression to the Rectangle Path's Position so the bar fills left-to-right. Keyframe the slider from 0 to 100 — or expose it in Essential Graphics so editors can set a percentage directly.
Back to Layout & Position