A jQuery plug-in that adds scrolling
vertical tickers to your site
Methods
init
Initializes and starts a vTicker for a specified selector/element
init(JSON object {} options)
options.speed 700
Sets the transition speed when animated
options.pause 4000
Delay before scrolling to next item
options.showItems 1
The number of items to display in the ticker
options.mousePause true
When mouse is over ticker should it pause the ticker
options.height 0
Use a fixed height for the ticker. Normally the height is automatically calculated based on the value of showItems
options.animate true
When true the ticker transitions will be animated
options.margin 0
Applies margin to each LI element in the ticker
options.padding 0
Applies padding to each LI element in the ticker
options.startPaused false
Starts the ticker in paused state
options.autoAppend true
Automatically appends items to the list, so that the list will loop
init Example
init Result
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
stop
Stops an existing vTicker from updating/animating. To restart call init again.
stop Example
pause
Pause or resume the ticker
pause(boolean paused)
paused
When set to true the ticker is paused. When set to false the ticker is resumed.
pause Example
pause Test
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
next
Advances to the next ticker item
next(JSON object {} options)
options.animate (boolean) false
When true, the next item is animated into view. If false, the next item is shown without animation. If this parameter is not specified then no animation is used by default.
next Example
next Test
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
prev
Returns to the previous ticker item
prev(JSON object {} options)
options.animate (boolean) false
When true, the previous item is animated back into view. If false, the previous item is shown without animation. If this parameter is not specified then no animation is used by default.
prev Example
prev Test
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore