Animate any number on scroll
Animates any number on your page from a start value to an end value when it scrolls into the user's viewport. Perfect for stats sections. The animation triggers once and never repeats on subsequent scroll passes.
Webflow has no built-in way to animate numbers. Displaying a stat like 1,200 clients or 98% satisfaction rate as a static number works — but it does nothing to draw attention to it. Adding a count-up animation that triggers when the number scrolls into view makes stats sections significantly more engaging and gives users a moment to register the number as it builds to its final value. Achieving this in Webflow without a kit means writing custom JavaScript or installing a third-party plugin that adds bloat, cookies, and in many cases a monthly cost.
The Fractional AutoCount Kit solves this with a single lightweight script and a set of custom attributes applied directly in the Webflow Designer.
Here is what you need to know:
- The Fractional AutoCount Kit works by wrapping your number element in a parent div and adding attributes to define the start value, end value, and animation duration. No JavaScript knowledge required and no changes to how your page renders or loads.
- The animation triggers automatically when the number scrolls into the user's viewport. It fires once and never repeats - scrolling away and back does not restart the animation, which keeps the experience feeling intentional rather than gimmicky.
- The start and end values are fully configurable. By default the counter starts at zero and counts up to whatever number is in the text element in Webflow. Override either value with a single attribute if you need the animation to start from a different point or end at a value different from what is displayed.
- The animation duration is configurable. Set how long the count-up takes in milliseconds — the default is 2000ms which is two seconds. Adjust it to match the pace of your page and the size of the number being animated.
- Multiple counters work independently on the same page. Each group triggers separately when it enters the viewport - a stats section with four different numbers each animates on its own without any interference between them.
- The Fractional AutoCount Kit uses the browser's native IntersectionObserver API to detect when the element enters the viewport. No scroll event listeners, no performance impact, and no interference with any other scroll behaviour on the page.
- The Fractional AutoCount Kit is fully GDPR, CCPA, and PIPEDA compliant. It sets no cookies, makes no external requests, and collects no personal data of its own.
Add this <script> inside the <head> tag of your page
This script is the universal script: you only need to include it once, even if you have multiple instances on the page.
<!-- This script is to animate numbers counting up when scrolled into view - Managed by Fractional Creative -->
<script data-fc="countup" data-fc-version="1.0.0" data-fc-consent="essential" src="https://cdn.fractionalcreative.io/kits@1/kits.js"></script>Add these required custom attributes

Add a Div Block to wrap the number or section where the number will be. This creates an instance where a single counter can be added. If you would like more than a single counter on your page, simply add another group and add all needed attributes.

Add a Text Block inside your new group Div wrapper containing the number you want to count to (e.g. 1000). Add the targeting attribute, and you're all set! This KIT defaults counting from 0 and takes 2 seconds to fully count. You can edit these two options with our optional attributes below.

If you would like to change the default starting point away from zero (0) then you can add this attribute to your targeted text element. Set the value to whatever you would like and this value will override the default to become your baseline.

The default end for your counter is the text you have added to your number in Webflow. If you would like to change the default, then you can add this attribute to your targeted text element. Set the value to whatever you would like and this value will override the default to become your baseline endpoint.

The default animation time for the counter is 2000ms (2 seconds). If you would like to change the default, then you can add this attribute to your targeted text element. Set the value to however long you would like and the value will override the default to become your baseline animation time.
Without the Kit
With the Kit
Everything you’re probably wondering.
This Kit removes any non-number during the animation. It is best to create a parent div around your target text and add your symbol as a secondary item. If you need the browser to read the full stat or number as a single item (ie: 200%), then it is best to add your text in an <embed> and add your attributes directly in a span.
No. The animation triggers once - the first time the number scrolls into the user's viewport. Scrolling away and back does not restart it. This keeps the experience feeling intentional rather than repetitive.
By default the Fractional AutoCount kit reads the text content of the target element directly from Webflow and uses that as the end value. If your text element says 1200 the counter animates from zero to 1200 automatically with no additional attributes required.
Yes. Add fc-countup-start to the target element to set where the animation begins — the default is zero. Add fc-countup-end to set the final value if you want it to differ from the text content in Webflow. Both are optional.
Yes. Add fc-countup-duration to the target element with a value in milliseconds. The default is 2000 which is two seconds. Use 1000 for a faster one second animation or 3000 for a slower three second one.
Yes. The kit animates to any number regardless of size. If your end value contains commas or other formatting characters the kit reads the raw numeric value and animates to it correctly.
Yes. Each counter group is fully isolated. A stats section with four different numbers each wrapped in their own group div animates independently — each one triggers when it individually enters the viewport.
Yes. The AutoCount Kit uses the IntersectionObserver API which checks visibility on page load as well as on scroll. If the number is already in the viewport when the page loads the animation starts immediately without requiring the user to scroll.
Yes. Add the group wrapper and target attributes to elements on a CMS template page and the animation works on every CMS item page automatically.
No. This Kit uses the browser's native IntersectionObserver API which is highly efficient and adds no scroll event listeners to the page. The animation itself runs using requestAnimationFrame for smooth performance with zero impact on page load or scrolling behaviour.
The number element displays its static value exactly as set in Webflow. No animation plays but the content is always visible and the page functions completely normally. This Kit degrades gracefully, meaning it will never affect page content under any circumstance when an error occurs.
Yes. The Fractional AutoCount Kit sets no cookies, uses no localStorage, makes no external requests, and collects zero personal data. No consent prompt is required.
Need more than a Webflow Kit? Hire a Digital Agency.
Fractional Creative is a digital agency. We build Webflow websites, design brands, manage Meta and Google ad campaigns, and build custom automations, and more. Start saving with Fractional services.

