Skip to content

Commit e56a5e9

Browse files
committed
format typewriter class, create btn appear animation, change scriptLab Logo and menu size
1 parent a4f93f2 commit e56a5e9

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

css/style.css

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,33 @@ html {
2020
opacity: 1;
2121
}
2222
}
23+
24+
@keyframes textTyping {
25+
from {
26+
width: 0;
27+
}
28+
to {
29+
width: 100%;
30+
}
31+
}
32+
33+
@keyframes blink-caret {
34+
from, to {
35+
border-color: transparent;
36+
}
37+
50% {
38+
border-color: lightblue;
39+
}
40+
}
41+
42+
@keyframes appear {
43+
0% {
44+
opacity: 0;
45+
}
46+
100% {
47+
opacity: 1;
48+
}
49+
}
2350
/************End of Animation Formatting************/
2451

2552
/************Font face Formatting************/
@@ -71,7 +98,7 @@ header {
7198
/*Format hamburger menu*/
7299
.bx-menu {
73100
padding: 10px;
74-
font-size: 7em;
101+
font-size: 5em;
75102
border: 5px solid black;
76103
border-radius: 8px;
77104
color: black;
@@ -81,7 +108,7 @@ header {
81108
/*Format x icon*/
82109
.bx-x {
83110
padding: 10px;
84-
font-size: 7em;
111+
font-size: 5em;
85112
border: 5px solid black;
86113
border-radius: 8px;
87114
z-index: 4;
@@ -149,7 +176,8 @@ header {
149176

150177
/*Format site logo*/
151178
.siteLogo {
152-
max-width: 250px;
179+
max-width: 200px;
180+
max-height: 180px;
153181
}
154182
/************End of Header Formatting************/
155183

@@ -230,6 +258,21 @@ section h2 {
230258
margin-bottom: 50px;
231259
}
232260

261+
/*Format hero content h2 span*/
262+
.heroContent h2 span {
263+
color: #BDFFFD;
264+
}
265+
266+
/*Format h2 type animation*/
267+
.typeWriter {
268+
animation: textTyping 3.5s steps(40, end),
269+
blink-caret 1s step-end infinite;
270+
overflow: hidden;
271+
white-space: nowrap;
272+
border-right: 10px solid lightcyan;
273+
margin: 0 auto;
274+
}
275+
233276
/*Format hero content a*/
234277
.heroContent a {
235278
font-family: var(--primary-round-font);
@@ -244,6 +287,7 @@ section h2 {
244287
display: inline-block;
245288
width: 60%;
246289
margin-top: 20px;
290+
animation: appear 1s ease-in;/*Create appear animation*/
247291
}
248292

249293
/**About section Formatting**/

0 commit comments

Comments
 (0)