forked from clubgamma/Awesome-Web-Art
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Name.html
85 lines (84 loc) · 1.8 KB
/
Name.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<title>Name Animation</title>
<style>
body {
background: #dadada;
font-family: "Montserrat", sans-serif;
}
.name {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-55%, -50%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.name h1 {
z-index: 2;
font-size: 150px;
font-weight: 900;
overflow: hidden;
padding: 20px 0;
transition: ease-in-out;
animation: name 1.2s ease-in-out;
}
.name #x {
position: absolute;
z-index: 1;
transform: translateX(270px);
font: 900 260px "Montserrat", sans-serif;
color: #555;
animation: X 1.2s ease-in-out;
}
@keyframes X {
0% {
transform: scale(1.5);
}
50% {
transform: scale(1);
}
100% {
transform: translateX(initial);
}
}
@keyframes name {
0% {
width: 0;
opacity: 0;
}
50% {
width: 0;
opacity: 0;
}
100% {
width: 100%;
opacity: 1;
}
}
@keyframes blinking {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
</head>
<body>
<div class="name">
<h1>VRAJ</h1>
<span id="x">I</span>
</div>
</body>
</html>