A JavaScript plugin for creating a tickerboard effect. Plugin for React or vanilla JS.

Overview

ticker-board

A JavaScript plugin for creating a tickerboard effect.

See the Ticker Board page for more info.

Importing it

There are basically two ways to import, and one way to use the Tickerboard.

Importing minified JS

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.

Importing node module

Run

npm install ticker-board

Then you can import

import { TickerBoard } from 'ticker-board'

or require

const { TickerBoard } = require('ticker-board')

Usage

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.

Advantages

  • Vanilla JS, so can be used with any framework
  • Webpack minified
  • Node module available
  • Good performance thanks to window.requestAnimationFrame

Disadvantages

  • Could be typescript
  • Low on documentation
You might also like...

Vanilla JavaScript plugin for lazyloading images

Lazy Load Remastered Lazy Load delays loading of images in long web pages. Images outside of viewport will not be loaded before user scrolls to them.

Dec 31, 2022

Accordion Plugin written in Vanilla JavaScript.

Easy Accordion Accordion plugin written purely in JavaScript. Setup So, to start using the Easy Accordion plugin in your project, you can include the

Dec 16, 2020

Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.

Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.

Jspreadsheet CE v4: The JavaScript spreadsheet Jexcel CE has been renamed to Jspreadsheet CE News Important: Please import jspreadsheet.css (jexcel.cs

Dec 19, 2022

Superlight vanilla javascript plugin, for modern web dropdowns. Supporting multi-options, search and images. Designed to be seamlessly themed

Superlight vanilla javascript plugin, for modern web dropdowns. Supporting multi-options, search and images. Designed to be seamlessly themed

Superlight vanilla javascript dropdowns by LCweb Need to jump off of jQuery (or any other) dependency? Other packages are too heavy to just tweak sele

Dec 26, 2022

Vanilla Javascript plugin for manage kanban boards

jKanban Javascript plugin for Kanban boards jKanban allow you to create and manage Kanban Board in your project! Please try out the live demo! Install

Jan 3, 2023

Superlight vanilla javascript plugin improving forms look and functionality

Superlight vanilla javascript plugin improving forms look and functionality

Superlight pure javascript form switch plugin by LCweb Give a modern look to your applications and take advantage of javascript events and public func

Mar 9, 2022

Create sticky element in flexbox sidebars. it can use in Vanilla JS and frameworks like Vue and React

Create sticky element in flexbox sidebars. it can use in Vanilla JS and frameworks like Vue and React

js sticky side simple sticky side with js that can use in frameworks like vue and react. notes it can be used just in flexbox grids. target element sh

Mar 3, 2022

🔖 lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue

🔖 lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue

Tagify - tags input component Transforms an input field or a textarea into a Tags component, in an easy, customizable way, with great performance and

Jan 2, 2023

Navigation-Menu-Javascript - A simple Navbar navigation using vanilla javascript, to change links to the active link when clicked.

Navigation-Menu-Javascript - A simple Navbar navigation using vanilla javascript, to change links to the active link when clicked.

Navigation-Menu-Javascript A simple Navbar navigation using vanilla javascript, to change links to the active link when clicked. Desktop view Mobile v

Feb 16, 2021
Comments
  • Board on displays first character of each line

    Board on displays first character of each line

    <script>
        $(document).ready(function(){
            const board = new Board('.create-ticker',{delay:50,count:3})
            board.updateMessages(['Apple', 'Banana', 'Cherry'])      
        });
    </script>
    
    <div class="text-center">
        <ul class="create-ticker">    
        </ul>  
    </div>
    

    only A, B and C are displayed

    <ul class="board"><li><div class="sr-only">Apple</div><div aria-hidden="true" class="ticker-row"><span class="ticker">A</span></div></li><li><div class="sr-only">Banana</div><div aria-hidden="true" class="ticker-row"><span class="ticker">B</span></div></li><li><div class="sr-only">Cherry</div><div aria-hidden="true" class="ticker-row"><span class="ticker">C</span></div></li></ul>

    opened by gibb3h 3
Owner
Robin James Kerrison
Instructor at General Assembly. Freelance software engineer. Formerly at Red Badger.
Robin James Kerrison
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
An open-source Typing-effect Library, That enables potential users to add a typing effect to mere DOM Elements.

Typing Effect Library An open-source Typing-effect Library I created. That enables potential users to add a typing effect to mere DOM Elements. Tool P

Okoye Charles 14 Oct 3, 2022
A simple easy to use vanilla JavaScript library for creating input fields that accept multiple email addresses

MeiMei - Multiple Email Input MeiMei: A simple easy to use vanilla JavaScript library for creating input fields that accept multiple email addresses.

Lars Straathof 1 Apr 13, 2022
Simple fixed background parallax effect in vanilla js.

Simple Parallax Simple fixed background parallax effect in vanilla js. See demo on Codepen. JS Initialise the plugin. The first argument identifies th

null 6 Jun 27, 2022
Fully controllable vanilla-js material design ripple effect generator.

Fully controllable vanilla-js material design ripple effect generator. This can be used with any JavaScript framework and/or any CSS framework. Demo I

71 Dec 16, 2022
📣 A vanilla js library for creating alerts, prompts and confirms.

attention.js This library will be released soon as 1.0 with a whole new codebase! Stay tuned! A vanilla js library for creating alerts, prompts, and c

Jan-Markus Langer 13 Apr 21, 2022
This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js

This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js. But in most cases, I would recommend you to use something like Express in a production project for productivity purposes.

Eduardo Dantas 7 Jul 19, 2022
A small, lightweight JavaScript plugin for placing items in straight rows (jQuery and vanilla JS version) – Demo:

rowGrid.js rowGrid.js is a small, lightweight (~1000 bytes gzipped) jQuery plugin for placing images (or other items) in straight rows. The grid is si

Bruno Joseph 669 Jul 22, 2022