Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e1029a8d6a
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (32 sloc) 1.091 kb

Tick

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

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

Events

  • onStart

  • onTick

  • onStop

Jump to Line
Something went wrong with that request. Please try again.