Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

CountUp (and CountDown)

147 sites Security covered Drupal 10–11
View on drupal.org

This module adds CKEditor widgets to create animated count up numbers or countdown timers. You can configure the start and end numbers, duration, and decimal places for count up animations, or set a specific date and time for countdown timers.

The CountUp module provides CKEditor 5 widgets for CountUp and CountDown.

Features

CountUp

This feature integrates the CountUp.js library with CKeditor, allowing to have nice and configurable animations on pages.

It display a simple animation from the defined start number to the end number, increasing or decreasing the numbers.

CountDown

This feature is adapted from countdown-timer.

It allows to create a count down timer from the defined date to the current date. The alarm setting defines the number of seconds before the end from which the timer starts to pulse.

Requirements

The module requires the following outside of Drupal core:

This library should be installed in the Drupal "libraries" and named countup.js.
The main script should be located here: libraries/countup.js/dist/countUp.umd.js.

Composer

The composer.json file defines the asset-packagist repository.
Simply require this module and the external librairies are also installed:

composer require drupal/countup

Installation

Install the CountUp module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/node/1897420 for further information.

Configuration

  1. Navigate to Administration > Extend and enable the module.
  2. Navigate to Administration > Configuration > Content Authoring > Text formats and editor > [format text to edit] to configure
  3. Drag the Countup and/or CountDown icons into the Active toolbar into the Tools group.
  4. Enable the countup filter in the filter list. It should run after the filters which limit the allowed HTML tags.
  5. Save configuration.
  6. Now when using the CKEditor, select the CountUp ot CountDown icon and edit the animation.

Widgets settings

Widget source code

Available attributes for CountUp:
<countup class start end decimal-places duration use-easing smart-easing-threshold smart-easing-amount use-grouping separator decimal prefix suffix>

Available attributes for CountDown:
<countdown-timer class date date-timezone alarm labels>

Note: the labels attribute is overridden by the text filter, so it should not be used when editing the source.

CKeditor4 (deprecated)

This branch is not compatible with CKeditor5. Work is currently in progress in the 3.x branch.

Branch 8.x-1.x

This branch is deprecated. Please use the 3.x branch.

There is a dependency with the library Scrollama.

Branch 8.x-2.x

This branch is deprecated. Please use the 3.x branch.

The only dependency is the countUp.js library.
There is no backward compatibility with the 8.x-1.x branch. The module has been almost rewritten, and the countUp.js library also changed some setting names.

Depends on

Dependencies of the latest stable release

  • ckeditor5 Drupal core
  • editor Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
9
Tracked since
Nov 2024
Latest release
6 months ago
Releases (12 mo)
2 ▼ from 7
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
3.1.0 Stable 10–11 Feb 16, 2026
3.1.x-dev Dev 10–11 Feb 16, 2026
3.0.0-beta6 Pre-release 9–10 Nov 19, 2024
3.0.0-beta5 Pre-release 9–10 Nov 19, 2024
3.0.0-beta4 Pre-release 9–10 Nov 19, 2024
3.0.0-beta3 Pre-release 9–10 Nov 18, 2024
3.0.0-beta2 Pre-release 9–10 Nov 15, 2024
3.0.x-dev Dev 10–11 Nov 15, 2024
3.0.0-beta1 Pre-release 9–10 Nov 15, 2024