react-text-swap-animation 1.3.0 → 1.5.0

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.
@@ -1,39 +0,0 @@
1
- .text-swap {
2
- color: #fff;
3
- flex: 0 0 auto;
4
- align-self: center;
5
- width: 100%;
6
- height: 100%;
7
- margin: 0 auto;
8
- text-align: left;
9
- text-transform: uppercase;
10
- display: flex;
11
- flex-direction: column;
12
- padding: 0;
13
- position: relative;
14
-
15
- .word {
16
- position: relative;
17
-
18
- &.hidden {
19
- position: absolute;
20
- visibility: hidden;
21
- z-index: -9000;
22
- }
23
-
24
- .letter {
25
- white-space: pre;
26
- z-index: 10;
27
- display: inline-block;
28
- }
29
- }
30
-
31
- .word-animation {
32
- .letter {
33
- z-index: 10;
34
- position: absolute;
35
- /*transition: all, 2s, cubic-bezier(0.1, 0.7, 1.0, 0.1), 2s;*/
36
- transition: all, 2s, ease-in-out, 2s;
37
- }
38
- }
39
- }
package/src/lib/index.js DELETED
@@ -1,3 +0,0 @@
1
- import TextSwap from './components/index';
2
-
3
- export default TextSwap;
package/src/lib/utils.js DELETED
@@ -1,17 +0,0 @@
1
- /**
2
- * Get a random number between `min` and `max`
3
- * @param {number} min The minimum number you want to include in the random output
4
- * @param {number} max The maximum number you want to include in the random output
5
- * @returns {number} A random number including and between the `min` and `max`
6
- */
7
- export function randomMinMax(min = 0, max = 100) {
8
- return Math.floor(Math.random() * (max - min)) + min;
9
- }
10
-
11
- export function uuidv4() {
12
- return 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
13
- const r = (Math.random() * 16) | 0,
14
- v = c === 'x' ? r : (r & 0x3) | 0x8;
15
- return v.toString(16);
16
- });
17
- }