npm

xpr-endless-tape

1.0.2 • Public • Published

XPR Endless Tape

How to use:

Install & require:

$ npm i xpr-endless-tape --save
var EndlessTape = require('xpr-endless-tape');

Init by specifying a parent container (mandatory), markup (mandatory), and options as follows:

var container = document.querySelector(...);
var markup = '<span>hello world<span>';

var myEndlessTape = new EndlessTape({
  container: container,
  speed: 20, // play around with this depending on the effect
  styles: { // styles for the tape element itself
    height: 90,
    display: 'flex',
    alignItems: 'center'
    position: 'fixed',
    bottom: 0
  },
  markup: markup,
  markupStyles: {
    fontSize: '24px'
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i xpr-endless-tape

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.99 kB

Total Files

3

Last publish

Collaborators

  • outisfun