1.0.2 • Published 5 years ago

xpr-endless-tape v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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'
  }
})
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago