animation-text-icon 1.0.1 → 1.0.4
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 +0 -0
- package/index.js +10 -8
- package/package.json +15 -7
package/README.md
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -6,14 +6,14 @@ direction='forwards',
|
|
|
6
6
|
initialAnimationValue={
|
|
7
7
|
color:'black',
|
|
8
8
|
rotate:'180deg',
|
|
9
|
-
scale:'
|
|
9
|
+
scale:'2',
|
|
10
10
|
Xposition:'200px',
|
|
11
11
|
Yposition:'200px'
|
|
12
12
|
},
|
|
13
13
|
finalAnimationValue={
|
|
14
14
|
color:'black',
|
|
15
15
|
rotate:'0deg',
|
|
16
|
-
scale:'
|
|
16
|
+
scale:'1',
|
|
17
17
|
Xposition:'0px',
|
|
18
18
|
Yposition:'0px'
|
|
19
19
|
},
|
|
@@ -26,31 +26,33 @@ Yposition:'0px'
|
|
|
26
26
|
<>
|
|
27
27
|
<style>
|
|
28
28
|
{`
|
|
29
|
-
|
|
30
|
-
animation: slideIn 2s ease-out ${direction};
|
|
31
|
-
color:green
|
|
29
|
+
.myDiv1 {
|
|
30
|
+
animation: slideIn 2s ease-out ${direction};
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
@keyframes slideIn {
|
|
35
34
|
from {
|
|
35
|
+
color:${initialAnimationValue.color};
|
|
36
36
|
transform: translate(${initialAnimationValue.Xposition}, ${initialAnimationValue.Yposition}) rotate(${initialAnimationValue.rotate}) scale(${initialAnimationValue.scale});
|
|
37
37
|
}
|
|
38
38
|
to {
|
|
39
|
+
color:${finalAnimationValue.color};
|
|
39
40
|
transform: translate(${finalAnimationValue.Xposition}, ${finalAnimationValue.Yposition}) rotate(${finalAnimationValue.rotate}) scale(${finalAnimationValue.scale});;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
`}
|
|
43
44
|
</style>
|
|
44
45
|
{!icon &&
|
|
45
|
-
<div
|
|
46
|
+
<div className="myDiv1">
|
|
46
47
|
{text}
|
|
47
48
|
</div>}
|
|
48
49
|
{icon &&
|
|
49
|
-
<div
|
|
50
|
+
<div className="myDiv1">
|
|
50
51
|
{icon}
|
|
51
52
|
</div>}
|
|
52
53
|
</>
|
|
53
54
|
);
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
export default AnimationPackage;
|
|
58
|
+
|
package/package.json
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animation-text-icon",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "package for animate text and icon",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"animation-text-icon",
|
|
7
|
+
"animation",
|
|
8
|
+
"text-animation",
|
|
9
|
+
"icon-animation",
|
|
10
|
+
"text",
|
|
11
|
+
"icon",
|
|
12
|
+
"css-animation",
|
|
13
|
+
"javascript-animation",
|
|
14
|
+
"react-animation",
|
|
15
|
+
"react-text-animation",
|
|
16
|
+
"react-icon-animation",
|
|
17
|
+
"react-text-icon-animation"
|
|
18
|
+
],
|
|
11
19
|
"homepage": "https://github.com/SekarMurugesan/animationPackage#readme",
|
|
12
20
|
"bugs": {
|
|
13
21
|
"url": "https://github.com/SekarMurugesan/animationPackage/issues"
|