New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

odometer_countup

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

odometer_countup

Plugin for countUp.js with odometer or barrel style numbers

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
2.2K
-14.22%
Maintainers
1
Weekly downloads
 
Created
Source

🔌 Plugin for countup.js

From countup.js version 2.6

Visit countUp for instructions on using plugins.

Parameters

  • duration: the time in seconds to transition to number
  • lastDigitDelay: experimental delaying last digit in sequence

Typescript

interface OdometerOptions {
  duration?: number // barrel animation in seconds,
  lastDigitDelay?: number // delay last digit in animation, in seconds, 0 to deactivate
}

export class Odometer implements CountUpPlugin;

Example

import { CountUp } from 'countup.js';

import { Odometer } from 'odometer_countup';

const counter = new CountUp("counter", 99999, {
  plugin: new Odometer({ duration: 2.3, lastDigitDelay: 0 }),
  duration: 3.0
});
counter.start();

View CodePen

Keywords

counter

FAQs

Package last updated on 04 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts