-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
74 lines (61 loc) · 1.46 KB
/
index.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
67
68
69
70
71
72
73
74
/* Animation for button */
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
/* Animation for image */
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(10deg);
}
}
/* Animation for text */
@keyframes fadeSlideIn {
0% {
opacity: 0;
transform: translateX(-30px);
}
100% {
opacity: 1;
transform: translateX(0); /* Move the text back to its original position */
}
}
/* Initially, all text is invisible (opacity 0) */
.first-text, .second-text, .third-text {
opacity: 0; /* Hide all texts before the animation starts */
}
.first-text {
animation: fadeSlideIn 0.7s ease-in-out forwards; /* First text appears immediately */
}
.second-text {
animation: fadeSlideIn 0.7s ease-in-out 0.7s forwards; /* Second text starts after 1s */
}
.third-text {
animation: fadeSlideIn 0.7s ease-in-out 1.4s forwards; /* Third text starts after 2s */
}
/* Button animation on hover */
.contact-btn {
opacity: 0;
animation: fadeSlideIn 1s ease-in-out 2.1s forwards,pulse 1s infinite;
box-shadow: 0px 10px 20px rgba(255, 193, 7, 0.6);
}
/* Image animation on hover */
img:hover {
animation: rotate 0.8s ease-in-out infinite alternate;
transform: rotate(10deg);
transition: transform 0.3s;
}
body{
font-family: 'Cherry Swash', serif
;
}