textsplitr

0.1.1 • Public • Published

TextSplitr

split text, free simple equivalent of greensock SplitText nested <span> tags are kept after split.

install

via npm :

npm install --save textsplitr

or use directly :

<script src="/textsplitr.min.js"></script>

documentation

new TextSplitr(DOMelement, [options]);

Parameters :

  • DOMelement : the DOM element you want to split
  • options (optional) : object with the possible following properties :
    • type (default: 'chars') : a comma-delimited list of the split type(s) which can be any of the following: chars, words.

license

ISC

Package Sidebar

Install

npm i textsplitr

Weekly Downloads

5

Version

0.1.1

License

MIT

Last publish

Collaborators

  • titoasty