A JavaScript plugin for creating a tickerboard effect.
See the Ticker Board page for more info.
There are basically two ways to import, and one way to use the Tickerboard.
Download the file at ./ticker-board/dist/ticker-board.min.js
to begin.
A simple
<script src="./ticker-board.min.js"><script>
will do it.
Run
npm install ticker-board
Then you can import
import { TickerBoard } from 'ticker-board'
or require
const { TickerBoard } = require('ticker-board')
Once imported, the easiest way is to create a list and let the default behaviour scroll the messages.
<ul class="create-ticker">
<li>Vanilla JS</li>
<li>CSS included</li>
<li>Auto rotating board</li>
<li>Manual update API</li>
<li>That's all so far</li>
</ul>
And then in your JavaScript,
new TickerBoard('.create-ticker')
For more complicated examples,
there is a board.updateMessages()
method.
document.getElementById('my-board')
const board = new Board(element)
board.updateMessages(['Apple', 'Banana', 'Cherry'])
See ./demo/
for more examples.
- Vanilla JS, so can be used with any framework
- Webpack minified
- Node module available
- Good performance thanks to
window.requestAnimationFrame
- Could be typescript
- Low on documentation