File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ import { useState, useEffect } from "react";
3
3
4
4
const Designations = ( { interval = 4000 } ) => {
5
5
const words = [
6
- "Digital Artist" ,
7
- "Software Developer" ,
8
- "Web Developer" ,
9
6
"Graphic Designer" ,
10
- "Backend Developer" ,
7
+ "Software Developer" ,
11
8
"Python Developer" ,
9
+ "Digital Artist" ,
12
10
"Software Engineer" ,
11
+ "Backend Developer" ,
13
12
"Full Stack Developer" ,
14
13
] ;
15
14
const [ index , setIndex ] = useState ( 0 ) ;
@@ -26,9 +25,9 @@ const Designations = ({ interval = 4000 }) => {
26
25
< AnimatePresence >
27
26
< motion . span
28
27
key = { index }
29
- initial = { { opacity : 0 , y : "-50%" } }
30
- animate = { { opacity : 1 , y : "0%" } }
31
- exit = { { opacity : 0 , y : "50%" } }
28
+ initial = { { opacity : 0 , rotateX : - 70 , y : "-50%" } }
29
+ animate = { { opacity : 1 , rotateX : 0 , y : "0%" } }
30
+ exit = { { opacity : 0 , rotateX : 70 , y : "50%" } }
32
31
transition = { { duration : 0.5 } }
33
32
style = { { position : "absolute" } }
34
33
>
You can’t perform that action at this time.
0 commit comments