-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.css
69 lines (56 loc) · 1.54 KB
/
project.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.first-text, .second-text , .third-text ,.first-project,.second-project,.third-project {
opacity: 0; /* Hide all texts before the animation starts */
animation-fill-mode: forwards; /* Keep the final state after the animation ends */
}
.first-text {
animation: fadeIn 0.7s ease-in-out forwards; /* First text appears immediately */
}
.second-text {
animation: fadeIn 0.7s ease-in-out forwards 0.7s; /* Second text appears after 0.7s */
}
.third-text {
animation: fadeSlideIn 0.7s ease-in-out forwards 1.4s; /* Second text appears after 0.7s */
}
.first-project {
animation: fadeSlideIn 0.7s ease-in-out forwards 1.9s; /* Second text appears after 0.7s */
}
.second-project {
animation: fadeSlideIn 0.7s ease-in-out forwards 2.4s; /* Second text appears after 0.7s */
}
.third-project {
animation: fadeSlideIn 0.7s ease-in-out forwards 2.9s; /* Second text appears after 0.7s */
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeSlideIn {
0% {
opacity: 0;
transform: translateY(30px);
}
100% {
opacity: 1;
transform: translateX(0); /* Move the text back to its original position */
}
}
.see-more {
opacity: 0;
animation: fadeSlideIn 1s ease-in-out 1.5s forwards,pulse 1s infinite;
box-shadow: 0px 10px 20px rgba(255, 193, 7, 0.6);
}