1.2.4 • Published 7 years ago

wraplines v1.2.4

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

WrapLines 📖

npm version license dependencies gzip size

Tiny library to wrap lines after every "line break" in a paragraph.

Install
npm install wraplines --save
Usage
import wrapLines from 'wraplines';

//Openingtag & closingtag has to be a string
wrapLines(container, openingtag, closingtag);
Example
wrapLines(document.getElementById("container"), "<span><thisiscoolhuh>", "</thisiscoolhuh></span>");
So you don't have to run the demo :p

example.gif

Notice

This library only breaks each line! You can add your own animations with by example css or gsap.

To dos
  • resize option
  • option to also split words/characters
MIT © Niels Reijnders
1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago