8000 GitHub - harvesthq/tick: Tick is a JavaScript plugin that makes visualizing dynamically changing numbers a breeze. · GitHub
[go: up one dir, main page]

Skip to content
harvesthqPublic

About

Tick is a JavaScript plugin that makes visualizing dynamically changing numbers a breeze.

Resources

Stars

202 stars

Watchers

41 watching

Forks

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tick

Tick is a JavaScript plugin that makes visualizing dynamically changing numbers a breeze.

Instance Methods

Note: $().ticker always returns an array of Tick instances, so always call these methods on that array’s element(s)!

  • start Renders and starts the Tick instance. Returns the instance’s timer or undefined if it was already running.

  • stop Stops the Tick instance and clears out the timer. Returns false.

Attributes

  • running boolean indicates whether the ticker has been started

  • options object all runtime options

  • element object the element that is used for this ticker

  • value int whatever value you pass in to the ticker

  • separators array a list of all separators

  • increment function callback used to update @value on every tick

Options

  • incremental mixed can be either a fixed numeric value that gets added to the base value on each tick or a function that gets called with the current value and must return the updated number

  • delay int the time in milliseconds after which the target value is being increased

  • separators boolean if true, all arbitrary characters inbetween digits are wrapped in seperated elements. if false, these characters are stripped out

  • autostart boolean whether or not to start the ticker when instantiated

About

Tick is a JavaScript plugin that makes visualizing dynamically changing numbers a breeze.

Resources

Stars

202 stars

Watchers

41 watching

Forks

Used by

Contributors

Languages

0