Skip to content

split text, free simple equivalent of greensock SplitText

License

Notifications You must be signed in to change notification settings

titoasty/TextSplitr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

split text, free simple equivalent of greensock SplitText

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published