-
Notifications
You must be signed in to change notification settings - Fork 78
/
AnimatedLandingPage
128 lines (104 loc) · 2.43 KB
/
AnimatedLandingPage
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
<!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>Document</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Michroma&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Michroma", sans-serif;
height: 100vh;
}
.loading-page {
position: absolute;
top: 0;
left: 0;
background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
gap: 1.5rem;
align-items: center;
justify-content: center;
color: #191654;
}
#svg {
height: 150px;
width: 150px;
stroke: white;
fill-opacity: 0;
stroke-width: 3px;
stroke-dasharray: 4500;
animation: draw 8s ease;
}
@keyframes draw {
0% {
stroke-dashoffset: 4500;
}
100% {
stroke-dashoffset: 0;
}
}
.name-container {
height: 30px;
overflow: hidden;
}
.logo-name {
color: #fff;
font-size: 20px;
letter-spacing: 12px;
text-transform: uppercase;
margin-left: 20px;
font-weight: bolder;
}</style>
</head>
<body>
<div class="containersex">
<p>Welcome Viewrs!</p>
</div>
<!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
<div class="loading-page">
<svg id="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path d="M32 32C14.3 32 0 46.3 0 64S14.3 96 32 96h96V416H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H192V96h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H160 32z"/></svg>
<div class="name-containersex">
<div class="logo-name">Ibad Laskar</div>
</div>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/gsap.min.js"
integrity="sha512-gmwBmiTVER57N3jYS3LinA9eb8aHrJua5iQD7yqYCKa5x6Jjc7VDVaEA0je0Lu0bP9j7tEjV3+1qUm6loO99Kw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script >
gsap.fromTo(
".loading-page",
{ opacity: 1 },
{
opacity: 0,
display: "none",
duration: 1.5,
delay: 3.5,
}
);
gsap.fromTo(
".logo-name",
{
y: 50,
opacity: 0,
},
{
y: 0,
opacity: 1,
duration: 2,
delay: 0.5,
}
);
</script>
</html>