Skip to main content
March 23, 2026Tziporah Zions/9 min read

Number Counter in After Effects

Master dynamic number animations in After Effects

What You'll Learn

This tutorial covers creating number counter animations using Text layers, Slider effects, expressions, and the pick whip tool for dynamic text control.

Core Components

Text Layer

The foundation element that displays your counting numbers. Acts as the visual output for your animation.

Slider Effect

Expression control that drives the number values. Provides the data source for your counter animation.

Expression Code

Math.round formula that connects slider values to text display. Ensures clean number formatting without decimals.

Introduction

A Number Counter effect is exactly what it sounds like—a dynamic animation that displays numbers incrementally ticking upward in sequence. This fundamental motion graphics technique combines a Text layer with a Slider Control effect to create professional-looking animations that feel both engaging and informative.

While the concept is straightforward, its versatility makes it invaluable for motion designers. From countdown timers and data visualizations to explainer videos and corporate presentations, the number counter effect remains a cornerstone technique in 2026. This tutorial will introduce you to essential expression snippets and demonstrate how to leverage the pick whip tool effectively—skills that extend far beyond this single effect.

Project Overview

Our approach follows a structured workflow that professional animators use daily. We'll begin by setting up the foundation within the Text layer, immediately applying the Slider Control effect to establish our animation framework. Next, we'll dive into the Text properties to configure the display settings and create the critical connection between our control and output using the pick whip tool.

The magic happens when we introduce a targeted expression snippet that transforms raw slider values into clean, rounded numbers. We'll then keyframe the animation to create smooth, professional transitions. Finally, we'll return to the Main Composition to properly position our element within the layer hierarchy and add finishing touches that elevate the visual impact.

Let's dive into the technical implementation.

Slider Control Foundation

  1. Open your project file and navigate to the Text layer by double-clicking the layer named Numbers.
  2. Select the Text tool from the toolbar.
  3. Click and drag to create a vertical text box in the center of your composition.
  4. Type 0 as your starting value.
  5. Navigate to Effects > Expression Controls > Slider Control in the top menu.
  6. In the timeline, twirl down the Text layer to reveal its properties.
  7. Expand the Text section within your layer properties.
  8. Similarly, expand the Effects section to reveal your newly added slider.
  9. Twirl down the Slider Control options to access the slider value.
  10. Click the spiral Pick Whip icon next to Source Text and drag it to the Slider property to create the connection.
  11. Alt-click (Windows) or Option-click (Mac) on the stopwatch next to Source Text to enable expressions.
  12. In the expression field that appears, input: Math.round(effect("Slider Control")("Slider")). This expression ensures your slider controls the displayed number while rounding values to clean integers—essential for professional-looking counters.

Animation and Timing

  1. Position your playhead at the composition start (0:00:00:00) and click the stopwatch next to the Slider property to create your first keyframe.
  2. Move the playhead to 0:00:17:00. This 17-second duration provides a comfortable pacing that viewers can easily follow without feeling rushed.
  3. Set the Slider value to 10 to create your end state.
  4. Click the Background tab at the top of your project window to return to the main composition.
  5. If necessary, reposition the Numbers layer by dragging it below the grass layer in your layer stack for proper visual hierarchy.
  6. Apply Effects > Perspective > Drop Shadow to add depth to your text.
  7. In the Effects Control panel, double-click the Shadow Color property.
  8. Set the shadow to a rich navy blue (#000F4C) for subtle contrast.
  9. Adjust the Distance to 27 pixels for appropriate separation.
  10. Set Softness to 10 for a natural, diffused shadow edge.
  11. Add Effects > Stylize > Glow to create dynamic visual interest.
  12. With your playhead at the starting position (0:00:00:00), set the Glow Radius to 20 in the Effects Control panel.
  13. Move the playhead to 0:00:02:14.
  14. Increase the Glow Radius to 50 to create a pulsing effect.
  15. In the timeline, expand the Glow properties within your layer.
  16. Select both glow keyframes by clicking and dragging across them.
  17. Copy the keyframes using Cmd+C (Mac) or Ctrl+C (PC).
  18. Position your playhead at 0:00:05:09.
  19. Paste the keyframes with Cmd+V (Mac) or Ctrl+V (PC).
  20. Continue this pattern: move to 0:00:07:21 and paste again.
  21. Move to 0:00:09:09 for your final paste operation.
  22. In the Effects Control panel, Shift-click to select both the Drop Shadow and Glow effects.
  23. Select the Learn motion graphics layer.
  24. Paste the effects using Cmd+V (Mac) or Ctrl+V (PC) to maintain visual consistency.
  25. Select the at Noble Desktop layer.
  26. Apply the same effects one final time with Cmd+V (Mac) or Ctrl+V (PC).

Your number counter animation is now complete and professionally polished.

Professional Applications and Customization

The beauty of this technique lies in its adaptability and wide-ranging applications. The fundamental approach—combining slider controls with mathematical expressions—forms the backbone of countless professional animations. In 2026's data-driven content landscape, this effect has become essential for creating compelling statistical presentations, progress indicators, and interactive dashboards.

Consider the versatility: adjust the mathematical expression to create percentage counters, currency displays, or even countdown timers. The same core technique powers everything from social media engagement metrics to sophisticated data visualization in corporate presentations. By modifying keyframe timing, you can create anything from rapid-fire statistics to slow, dramatic reveals that build tension in explainer videos.

Typography choice dramatically impacts the effect's personality. Clean, geometric fonts like Helvetica or Futura work excellently for corporate and tech applications, while more stylized fonts can support creative projects. The glow and shadow effects we've applied create a premium, broadcast-ready look that stands up to professional standards.

For advanced applications, consider duplicating this setup across multiple layers with staggered timing to create cascading number reveals, or use different mathematical expressions to display related data simultaneously.

Credits

Star vector created by upklyak—www.freepik.com

Flower vector created by freepik—www.freepik.com

Video Transcript

Hi everyone. We're going to be doing a number of things today, and I'll try to do them right away. So let's get started. We're going to double-click on the background layer. Once you download the files that are in the description, that's what you'll be presented with. And then we'll double click on the numbers layer, which is a section you want. We're going to be filling it with stuff.

So the first thing I'm going to do is layer new. You layer new text and we're just going to type in here. Start with this. It is pretty small. We could make this bigger. I'm going to select my text, I'm going to increase the size.. Let's get you at around 170. You're going to deflect anywhere else in my position when I select my zero, and then I'm going to go to affect expression controls, slider control.

And then we're just going to start toggling open this layer to open text layer and then we're going to toggle open effects and then open slider control. And let's make sure that the plate's at the origin very start and within this layer stack, we're going to pick up the surface text by clicking the swirly thing, drag it over slider.

Now the slaughter is going to be controlling source text and we're going to strain the numbers that can be displayed. So it's not like decimals or whatever but you all click on certain objects, source text I'm going to put in this code snippet. You know, it's, it's messed up round the parentheses affect the parentheses, control reference keys of parentheses, slider, and then you close oil references.

Once you start typing this in After Effects should give you the option to fill it in on its own. I'm going to select anywhere in the interface to do that. So with the Playhead, it's origin going to hit stop a slider and set at zero, but we're actually going to change that zero to one at once. Sheep appear on screen and we're going to move our plate all the way to 17 seconds.

Then I'm going to change it slider to ten because we would like the change to be pretty gradual over time. We're going to head back to our background layer, but with the background and you can see that we've got our numbers here right as we playhead they will change accordingly. Now let's add some effects. We'll go over to the effects panel over here already type and drop shadow.

You can do that on your own and we will be clicking and dragging a drop shadow on to the numbers layer. Let's double-click the shadow color, bring it over to the blue. We're going to pick the nice navy color and the distance of put in 25 to 27. Maybe softness will be ten got a shadow now put in a glow effect so we can drag highlights blue onto the numbers this is one we're going to be animating actually so the first thing we're going to do if this objects will radius change it 20 move it to about 2 seconds then change that glow radius 50 now with the number layer selected you show all these selected keyframes you got all the animated keyframes we're going to select both these keyframes hit command to your control see on your keyboard to copy it move forward about 4 seconds in throw your command see on your two where to set and then maybe read another text after that in seconds again they sit in we've got these repeating quote going on and then we're going to be clicking on both the flow effect and the drop shadow effect within our layer stuff.

Again, trust your command, see on your keyboard to copy that. We're going to go over to the text layers within our composition and control your control frenzy on your Mac to is set do the same with other layer. As you can see as we head to that part of the composition now, those two have as well these same effects that we apply to the slider controlled layer and that's about it.

This has been surprising since from the older stuff. I hope you enjoyed this tutorial. I'm happy and waiting.

Complete Setup Process

1

Create Text Layer

Double-click Numbers layer, use Text tool to create vertical rectangle, type initial value of 0, and set font size to around 170 for visibility.

2

Add Slider Control

Navigate to Effects > Expression Controls > Slider Control to add the control mechanism that will drive your number counter.

3

Connect with Pick Whip

Use the swirly pick whip tool to drag from Source Text to Slider effect, creating the connection between controls and display.

4

Apply Expression Code

ALT-click Source Text stopwatch and enter Math.round(effect('Slider Control')('Slider')) to enable integer-only number display.

5

Set Keyframes

At timeline origin set Slider to 1, move playhead to 17 seconds, change Slider to 10 for gradual counting animation.

Expression Auto-Complete

After Effects will provide auto-complete suggestions as you type the Math.round expression code, making the process faster and reducing syntax errors.

Visual Enhancement Setup

0/4

Animation Timeline

0:00:00:00

Initial Setup

Set slider value to 1, establish starting glow radius at 20

0:00:02:14

First Glow Peak

Glow radius reaches 50 for initial pulse effect

0:00:05:09

Second Glow Cycle

Paste glow keyframes for repeated animation cycle

0:00:17:00

Final Counter Value

Number counter reaches maximum value of 10

Number Counter Technique

Pros
Simple setup with powerful customization options
Easily scalable for different number ranges
Works well with various typefaces and effects
Perfect for digital clocks and industrial animations
Keyframe timing is fully adjustable
Cons
Requires basic understanding of expressions
Manual keyframe setup for complex timing
Limited to integer values without modification

Key Takeaways

1Number counter effects combine Text layers with Slider controls and expressions for dynamic counting animations
2The Math.round expression ensures clean integer display by eliminating decimal values from slider controls
3Pick whip tool provides visual connection method between slider effects and text source properties
4Keyframe timing controls counting speed - longer duration creates slower, more gradual number progression
5Visual effects like drop shadows and animated glows enhance the professional appearance of number counters
6Copy and paste functionality allows consistent effect application across multiple text layers in compositions
7Number counters work effectively in digital clocks, explainer videos, and industrial-style motion graphics
8Expression auto-complete in After Effects helps reduce coding errors and speeds up the setup process

RELATED ARTICLES