-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimation.css
99 lines (83 loc) · 2.48 KB
/
animation.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.hrhead{
transform: scaleX(0); /* Initially scale it down to 0 */
transform-origin: left; /* Set the transformation origin to the left */
animation: slideInRightsmooth 1.8s ease-in-out forwards;
}
.header{
opacity: 0;
/* Start with 0 opacity */
animation: fadeIn 2.5s ease forwards;
animation-delay: 0.5s;
}
.bgImage::before {
opacity: 0;
transform: translateX(-55%); /* Start position outside the screen */
animation: slideInRight 0.8s ease-in-out forwards, fadeIn 0.8s ease forwards;
}
.dhead {
/* position: fixed; */
/* left: -70%; */
visibility: hidden;
transform: translateX(-83%);
animation: slideInRightVisible 0.85s ease forwards;
animation-delay: 0.7s;
}
.bodybtn {
opacity: 0;
/* Start with 0 opacity */
animation: fadeIn 1.9s ease forwards;
animation-delay: 1.3s;
/* Use the fadeIn animation */
}
.donerAni{
opacity: 0;
transform: translateX(55%); /* Start position outside the screen */
animation: slideInRight 0.8s ease-in-out forwards, fadeIn 0.8s ease forwards;
animation-delay: 0.2s;
}
.donerAni2::before{
opacity: 0;
transform: translateX(-55%); /* Start position outside the screen */
animation: slideInRight 0.8s ease-in-out forwards, fadeIn 0.8s ease forwards;
animation-delay: 0.2s;
}
.appointAni{
opacity: 0;
transform: translateX(65%); /* Start position outside the screen */
animation: slideInRight 0.8s ease-in-out forwards, fadeIn 0.8s ease forwards;
animation-delay: 0.2s;
}
.appointAni2::before{
opacity: 0;
transform: translateX(-55%); /* Start position outside the screen */
animation: slideInRight 0.8s ease-in-out forwards, fadeIn 0.8s ease forwards;
animation-delay: 0.2s;
}
@keyframes fadeIn {
to {
opacity: 1;
/* Gradually increase opacity to 1 at the end of the animation */
}
}
@keyframes slideInRightsmooth {
to {
transform: scaleX(1); /* Scale it back to its original width */
}
}
@keyframes slideInRightVisible {
to {
visibility: visible;
transform: translateX(0); /* Slide in to the original position */
}
}
@keyframes slideInLeft {
to {
transform: translateX(0);
/* Slide it in by setting left to 0 at the end of the animation */
}
}
@keyframes slideInRight {
to {
transform: translateX(0); /* Slide in to the original position */
}
}