text-slicer 0.0.1-alpha.1 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<p align="center">TextSlicer is designed to split text within an HTML element into separate words and/or characters, wrapping each word and/or character in separate span elements.</p>
|
|
13
|
-
<p align="center"><sup>
|
|
13
|
+
<p align="center"><sup>700B gzipped</sup></p>
|
|
14
14
|
<p align="center"><a href="https://codepen.io/ux-ui/pen/vYMoGoG">Demo</a></p>
|
|
15
15
|
<br>
|
|
16
16
|
|
|
@@ -35,10 +35,8 @@ const textSlicer = new TextSlicer();
|
|
|
35
35
|
|
|
36
36
|
textSlicer.init();
|
|
37
37
|
```
|
|
38
|
-
<br>
|
|
39
|
-
Initialization with specified parameters
|
|
40
|
-
<br>
|
|
41
38
|
|
|
39
|
+
<sub>Initialization with specified parameters</sub>
|
|
42
40
|
```javascript
|
|
43
41
|
document.addEventListener('DOMContentLoaded', () => {
|
|
44
42
|
const textSlicer = new TextSlicer({
|
|
@@ -50,10 +48,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
50
48
|
textSlicer.init();
|
|
51
49
|
});
|
|
52
50
|
```
|
|
53
|
-
<br>
|
|
54
|
-
How to apply the TextSlicer class to all elements on a page
|
|
55
|
-
<br>
|
|
56
51
|
|
|
52
|
+
<sub>How to apply the TextSlicer class to all elements on a page</sub>
|
|
57
53
|
```javascript
|
|
58
54
|
document.addEventListener('DOMContentLoaded', () => {
|
|
59
55
|
document.querySelectorAll('.text-slicer').forEach((element) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "text-slicer",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "TextSlicer is designed to split text within an HTML element into separate words and/or characters, wrapping each word and/or character in separate span elements.",
|
|
5
5
|
"author": "ux-ui.pro",
|
|
6
6
|
"license": "MIT",
|