Skip to content

2.6.0

Compare
Choose a tag to compare
@inorganik inorganik released this 13 Mar 22:12
· 18 commits to master since this release
49e46aa

Support animation plugins: A plugin is a class instance or object passed in options for the plugin param that implements a render method:

export declare interface CountUpPlugin {
  render(elem: HTMLElement, formatted: string): void;
}

The plugin's render method will be called on each frame to display the formatted value instead of CountUp's.