Skip to content

Commit 9b9be7e

Browse files
committed
Typing Effect Added
1 parent 247bb77 commit 9b9be7e

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@ https://user-images.githubusercontent.com/100127570/228227870-ddec4d9b-bfe4-4d0d
108108

109109
<img src="screenshots/animated_buttons.png">
110110

111+
## (22) Typing Effect
112+
113+
114+

Typing Effect/index.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>Typing Effect</title>
9+
<style>
10+
* {
11+
padding: 0;
12+
margin: 0;
13+
box-sizing: border-box;
14+
}
15+
16+
body {
17+
min-height: 100vh;
18+
display: grid;
19+
place-items: center;
20+
background-color: #FF0032;
21+
}
22+
23+
.container {
24+
font-size: 38px;
25+
font-family: Verdana, Geneva, Tahoma, sans-serif;
26+
}
27+
28+
.typing {
29+
width: max-content;
30+
color: white;
31+
overflow: hidden;
32+
white-space: nowrap;
33+
width: 0;
34+
animation: typing;
35+
animation-timing-function: steps(25, end);
36+
animation-duration: 8s;
37+
animation-fill-mode: forwards;
38+
animation-iteration-count: infinite;
39+
border-right: 5px solid white;
40+
}
41+
42+
@keyframes typing {
43+
0% {
44+
width: 0%;
45+
}
46+
47+
40%,
48+
50% {
49+
width: 100%;
50+
}
51+
52+
100% {
53+
width: 0%;
54+
}
55+
}
56+
</style>
57+
</head>
58+
59+
<body>
60+
<div class="container">
61+
<p class="typing">This is a Typing Effect.</p>
62+
</div>
63+
</body>
64+
65+
</html>

0 commit comments

Comments
 (0)