splitting
Version:
Micro-library to split a DOM element's words & chars into elements populated with CSS vars.
29 lines (18 loc) • 1.62 kB
Markdown
# [<img src="https://splitting.js.org/splitting.gif" alt="Splitting.js" style="max-width: 100%; height:auto" />](https://splitting.js.org)
### _CSS Vars for split words, chars & more!_




Splitting.js is a JavaScript microlibrary designed to split (section off) an element in a variety of ways, such as words, characters, child nodes, and more!
Most Splitting methods utilize a series of `<span>`s populated with CSS variables and data attributes unlocking transitions and animations that were previously not feasible with CSS.
Install with `npm i splitting -s` or [Download](https://github.com/shshaw/Splitting/archive/master.zip).
Consult the [guide & documentation](https://splitting.js.org/guide.html) for more details and installation instructions.
- [**Guide & Documentation**](https://splitting.js.org/guide.html)
- [**Demos**](https://codepen.io/collection/43588e4b7beaaf25ede7e38e61441e54/)
---
## Maintainers
| Maintainer | GitHub | Twitter |
| :- | :- | :- |
| Stephen Shaw | [@shshaw](https://github.com/shshaw) | [@shshaw](https://twitter.com/shshaw) |
| Christopher Wallis | [@notoriousb1t](https://github.com/notoriousb1t) | [@notoriousb1t](https://twitter.com/notoriousb1t) |