How to Add Slider Control in After Effects
StyleFrame Team8 min read
To add a slider control in After Effects, select a layer, choose Effect > Expression Controls > Slider Control, then Alt-click (Windows) or Option-click (Mac) the stopwatch of any property and drag its pick whip to the slider's "Slider" value. The property now follows the slider, so you can animate or tweak one number instead of editing the expression. For clean rigs, put sliders on a null or adjustment layer and rename each one so the expression reads clearly.
What a Slider Control Actually Does
A Slider Control is an expression control: an effect that renders nothing but holds a single numeric value you can keyframe, scrub, and reference from any other property. Think of it as a named variable with a UI. Its job is to separate the value you want to art-direct (amplitude, speed, spacing, opacity) from the expression or property that consumes it.
That separation matters in production. Instead of opening an expression and hunting for a number buried in a wiggle() call, you change a labeled value in the Effect Controls panel. If a client wants "a bit less jitter," you move one slider. If a teammate inherits the project, the rig explains itself.
Step 1: Add the Slider Control Effect
You have two routes:
- Menu: Select the layer, then go to Effect > Expression Controls > Slider Control.
- Effects & Presets panel: Search "Slider Control" and double-click it with the layer selected, or drag it onto the layer.
The effect appears in the Effect Controls panel (F3) and in the Timeline under Effects, with a single property named Slider. Press Enter (or Return) on the effect name in the Timeline to rename it. Names like "Amplitude," "Frequency," or "Glow Intensity" will save you time later because they appear inside the expression text.
Step 2: Link a Property to the Slider with the Pick Whip
- Reveal the property you want to drive (for example, Rotation, Opacity, or a text animator's Amount).
- Alt-click (Windows) or Option-click (Mac) the property's stopwatch to enable expressions.
- Drag the pick whip (the small spiral icon in the expression row) to the Slider property of your Slider Control.
After Effects writes something like:
The property now equals the slider's value. Moving the slider changes the property live.
Link just one part of an expression
The most common mistake is whipping the entire property when you only want to control one argument. If you already have a wiggle(3, 50) expression and want the amplitude to be slider-driven, highlight only the 50 in the expression editor, then drag the pick whip onto the slider. The result:
Do the same for the frequency with a second slider and you have two independent controls over one expression.
Step 3: Keyframe the Slider
Because the slider is just a property, you can animate it like any other:
- Click the stopwatch next to the slider's value to enable keyframes.
- Set a value at one time, move the playhead, and set another.
- Open the Graph Editor (Shift+F3) to ease the motion.
A classic use: a wiggle that ramps in and out. Set Amplitude to 0 at the start, up to 50 at the midpoint, and back to 0 at the end. Matching the first and last keyframes also gives you a seamless loop, which is handy for GIFs and looping social assets.
If you need a value to hold rather than interpolate, right-click a keyframe and choose Toggle Hold Keyframe. This is useful for step changes, such as switching a number or state at a precise frame.
Step 4: Build a Control Layer (Null or Adjustment)
For anything beyond a quick test, centralize your sliders on a dedicated layer:
- Create a null (Layer > New > Null Object) and name it something like "CTRL_Main."
- Add Slider Controls to it, one per parameter.
- Pick-whip properties on other layers to those sliders.
Benefits of this approach:
- One place to art-direct. You tweak the rig from a single layer rather than hunting through the comp.
- Easy duplication. Duplicate a controlled layer and it still points at the same control layer, so changes propagate.
- Cleaner handoff. A well-named control layer works as documentation.
One caution: if you copy layers into another comp, expressions that reference a layer by name or index can break. Copy the control layer along with the layers it drives, and check for expression errors (the yellow warning triangle) afterward.
Driving Multi-Dimensional Properties
Properties like Scale and Position hold arrays, so a single slider will flatten them. If you want separate horizontal and vertical control, use two sliders and return an array:
This works well for shapes that must stretch to fit varying text, a common motion graphics template need.
Keep your keyframes by using value
Adding an expression overrides the property's own keyframes. If you want sliders to modify existing animation instead of replacing it, use value, which represents the property's pre-expression, keyframed result:
Here the slider values act as percentage multipliers on the animated scale. For arrays, value[0] is the X component and value[1] is Y. This pattern keeps hand-keyed motion intact while giving you a global tweak.
Formatting Slider Values as Text
Sliders are popular for counters, prices, and dates. Add an expression to a text layer's Source Text:
Because the slider interpolates between keyframes, a value moving from 1 to 2 over 20 frames passes through 1.5 around the midpoint. That is correct behavior, not a bug. Control the display instead:
- Whole numbers, rounded:
Math.round(s) - Whole numbers, held until the target is reached:
Math.floor(s) - One decimal place:
Math.round(s * 10) / 10(use 100 for two places)
You can also add prefixes and suffixes by concatenating strings, for example "$" + (Math.round(s * 100) / 100) + "bn". Note that JavaScript's Math is case-sensitive, a frequent source of silent errors.
Slider Limits and the Point Control Workaround
A Slider Control has a practical ceiling: its range tops out around 1,000,000. For large counters, such as an animated figure that must exceed that, you can use a Point Control instead. It's effectively two numeric fields, and you can reference one component:
Keyframe that first component without the same limit. Alternatively, keyframe a smaller value and multiply it in the expression. Either way, you keep the single-controller convenience.
Exposing Sliders in Motion Graphics Templates
If you're building templates for Premiere Pro, a slider can become an end-user control. In the Essential Graphics panel, drag the Slider property into your template so editors can adjust it without opening After Effects. For selecting between options, Dropdown Menu Control and Checkbox Control are better fits than sliders. Test the template in Premiere before you ship it, since expressions that rely on layer names or comp structure can behave differently once the template is imported.
Troubleshooting Checklist
- Nothing changes when I move the slider: Confirm the property's expression is enabled (the = sign next to the stopwatch) and that you linked to the right slider, not a similarly named one.
- Property no longer animates: The expression replaced your keyframes. Use
valueto build on them. - Expression error after renaming: Names inside
effect("...")must match exactly. Renaming an effect usually updates references, but pasted expressions may not. - Copied layer misbehaves: Check that it still points to the intended control layer.
- Slider won't go high enough: See the Point Control workaround above.
Where Styleframe Fits in a Slider-Driven Workflow
Sliders give you precise, repeatable control inside After Effects. They pair well with generated or stylized plates that you want to dial in during compositing. is an AI video and motion tool.
Here is a practical way to combine the two:
- Generate a stylized pass of your footage in Styleframe.
- Export it and import it into After Effects, where your compositing workflow stays unchanged.
- Layer the stylized pass over the original and drive its opacity, blend amount, or a displacement or glow effect with Slider Controls on a control null.
- Keyframe those sliders so the look ramps in and out, or tune it per shot without regenerating anything.
This keeps the creative decisions with you: Styleframe produces the stylized material, and sliders handle the fine-grained, shot-by-shot balance in your comp.
Quick Recap
- Add via Effect > Expression Controls > Slider Control, and rename it.
- Alt/Option-click a property's stopwatch and pick-whip to the slider.
- Highlight only the argument you want to control inside an existing expression.
- Keyframe the slider and refine it in the Graph Editor.
- Centralize sliders on a null, use
valueto preserve keyframes, and round numbers for text. - Use Point Control when you need more range than a slider allows.
Once you build your first control-layer rig, you'll likely stop hard-coding numbers in expressions altogether.