@sudarshanaui/animated-otp 1.0.1 → 2.0.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.
- package/AnimatedOTP.css +4 -4
- package/AnimatedOTP.jsx +1 -1
- package/package.json +1 -1
package/AnimatedOTP.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.otp-anim {
|
|
1
|
+
.sd-otp-anim {
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 12px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
input {
|
|
6
|
+
.sd-otp-input-anim {
|
|
7
7
|
width: 50px;
|
|
8
8
|
height: 60px;
|
|
9
9
|
text-align: center;
|
|
@@ -16,14 +16,14 @@ input {
|
|
|
16
16
|
color: #333;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
input:focus {
|
|
19
|
+
.sd-otp-input-anim:focus {
|
|
20
20
|
transform: translateY(-5px) scale(1.1);
|
|
21
21
|
border-color: #6200ea;
|
|
22
22
|
background: white;
|
|
23
23
|
box-shadow: 0 10px 20px rgba(98, 0, 234, 0.2);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@keyframes shake {
|
|
26
|
+
@keyframes sd-shake {
|
|
27
27
|
0%, 100%: [object Object];
|
|
28
28
|
20%, 60%: [object Object];
|
|
29
29
|
40%, 80%: [object Object];
|
package/AnimatedOTP.jsx
CHANGED
|
@@ -4,7 +4,7 @@ import './AnimatedOTP.css';
|
|
|
4
4
|
export const AnimatedOTP = (props) => {
|
|
5
5
|
return (
|
|
6
6
|
<>
|
|
7
|
-
<div className="otp-anim"><input type="text" maxlength="1" placeholder="•" /><input type="text" maxlength="1" placeholder="•" /><input type="text" maxlength="1" placeholder="•" /><input type="text" maxlength="1" placeholder="•" /></div>
|
|
7
|
+
<div className="sd-otp-anim"><input type="text" maxlength="1" placeholder="•" className="sd-otp-input-anim" /><input type="text" maxlength="1" placeholder="•" className="sd-otp-input-anim" /><input type="text" maxlength="1" placeholder="•" className="sd-otp-input-anim" /><input type="text" maxlength="1" placeholder="•" className="sd-otp-input-anim" /></div>
|
|
8
8
|
</>
|
|
9
9
|
);
|
|
10
10
|
};
|