-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.css
166 lines (135 loc) · 2.83 KB
/
custom.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/* elements fade in custom animation */
@layer utilities{
/* animation utilities for typing animation */
.typing-container {
width: 100%;
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
}
.typing-text {
display: inline-block;
width: 0;
animation: typing 4.7s steps(30) forwards infinite, blink 0.6s step-end infinite;
}
/* animation utilities for reaveal animation */
.animate-reveal {
animation: reveal linear both;
}
.timeline-view {
animation-timeline: view(block);
}
.range-cover {
animation-range: cover 30% cover 40%;
}
/* projects scaling animation */
.image-scaling {
transform: scale(1) translateY(0);
transition: transform 0.5s ease-in-out;
}
.images-parent:hover .image-scaling {
transform: scale(1.3) translateY(25px);
}
.images-parent:hover .div-blur {
filter: blur(5px);
transition: filter 0.8s ease-in-out;
}
.image-scaling {
filter: none;
}
/* filter for unfinished projects */
.blur-card-unfinished-project{
filter: blur(5px);
}
/* animation section for the underline animation on the socials */
.on-hover-underline {
text-decoration: none;
position:relative;
display: inline-block;
}
.on-hover-underline::before{
content: "";
position: absolute;
left: 0;
bottom: 0; /* used to make the line come bellow */
width: 0%;
height: 2px;
background-color: black;
transition: width 0.3s ease-in-out;
}
.on-hover-underline:hover::before{
width: 100%;
}
.mobileAnimation {
animation: phoneAnimation 6s linear infinite;
}
.mobileAnimationReverse {
animation: phoneAnimationrev 6s linear infinite;
animation-delay: 4s; /* Starts after the first animation completes */
}
}/* end of utility class */
@keyframes phoneAnimation {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(0);
}
}
/* Growing animation for the second image */
@keyframes phoneAnimationrev {
0% {
transform: scale(0);
opacity: 1;
}
100% {
transform: scale(1);
}
}
/* keyframe for the reveal animation */
@keyframes reveal {
from {
transform: translateY(10px);
}
to {
transform: translateY(0);
}
}
/* keyframes for the typing animation */
@keyframes typing{
0% {
width: 0%;
}
50% {
width: 100%;
}
70% {
width: 100%; /* Simulating backspace */
}
100% {
width: 0%;
}
}
/* keyframe for the blinking of cursor animation */
@keyframes blink {
50%{
border-color: transparent;
}
}
/* filter for the grainy texture */
/* body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000000;
filter: url(#grainyTexture);
opacity: 30%;
pointer-events: none;
z-index: 9999;
mix-blend-mode: multiply;
}
*/