Animated Stat Counter
Big numbers that count up when scrolled into view.
Live preview
See it in action.
Fully interactive, drag, click, scroll inside the frame, toggle to mobile.
About this block
Stat counter with intersection-observer-triggered count-up animation. Add as many or as few stats as you need, just duplicate one .modblo-stat__cell block in the code.
Install in 90 seconds
- 01
Open your Shopify admin and go to Online Store → Themes → Customize.
- 02
On any template, click "Add section" where you want the block to appear.
- 03
Choose "Custom Liquid" from the section list.
- 04
Paste the code from this page into the Custom Liquid setting and click Save.
- 05
Edit text and colors directly in the code (look for the comments marking edit points).
The code
In your Shopify theme editor, add a Custom Liquid section and paste the snippet below into its content field. You can change text, colors, and links right inside the code. Every editable spot is marked with an EDIT comment.
What you can customize
Custom Liquid sections don't have visual theme editor settings, so changes happen directly in the code. Here's what to edit:
| What | How to edit |
|---|---|
| Heading | Find the value in the code and change it directly. |
| Each stat | data-target=number, data-prefix and data-suffix for $, %, +, /100, etc. |
| Number color | Look for /* EDIT number color */. |
SEO and accessibility notes
- Numbers animate via IntersectionObserver, only triggered when in view.
- Falls back to static numbers in browsers without IO support.
- Uses tabular-nums font feature for stable digit width during animation.
Related
