-
Notifications
You must be signed in to change notification settings - Fork 1
/
day-26.html
68 lines (65 loc) · 1.49 KB
/
day-26.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>day26</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
background: linear-gradient(
to right,
#8e2de2,
#4a00e0
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
h1 {
font-weight: bold;
font-size: 64px;
border-right: 4px solid red;
animation: type steps(22) 4s infinite alternate, cursor 0.8s infinite;
white-space: nowrap;
overflow: hidden;
color: #fff;
}
/* curson effects */
@keyframes cursor {
0%,
40% {
border-color: transparent;
}
100% {
border-color: red;
}
}
/* typing effect */
@keyframes type {
0% {
width: 0ch;
/* ch = character */
}
100% {
width: 19ch;
/* ch = character */
}
}
</style>
</head>
<body>
<h1>Hi, I am Ajay Yadav...</h1>
<script>
let x = "Hi, I am Ajay Yadav...";
console.log(x.length);
</script>
</body>
</html>