Skip to content

Commit 1e39b2e

Browse files
author
Garvitraj Pandey
authored
Added loader code
1 parent 050343b commit 1e39b2e

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Css-Text-Animation</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<h2 data-text ="#importHUSTLE...">#importHUSTLE...</h2>
11+
</body>
12+
</html>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');
2+
3+
*
4+
{
5+
margin: 0;
6+
padding: 0;
7+
box-sizing: border-box;
8+
font-family: 'Space Grotesk', sans-serif;
9+
10+
}
11+
body
12+
{
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
min-height: 100vh;
17+
background-color: #21209C;
18+
19+
}
20+
h2
21+
{
22+
position: relative;
23+
font-size: 14vh;
24+
color: #21209C;
25+
-webkit-text-stroke: 0.4vw #1a1a91;
26+
27+
}
28+
29+
h2::before
30+
{
31+
content: attr(data-text);
32+
position: absolute;
33+
top: 0%;
34+
left: 0%;
35+
width: 0%;
36+
height: 100%;
37+
color: rgb(241, 237, 8);
38+
-webkit-text-stroke: 0vw #1a1a91;
39+
border-right: 2px solid rgb(241, 237, 8);
40+
overflow: hidden;
41+
animation: animate 7s linear infinite;
42+
43+
}
44+
45+
@keyframes animate
46+
{
47+
0%,10%,100%{
48+
width: 0%;
49+
}
50+
70%,90%{
51+
width: 100%;
52+
}
53+
}

0 commit comments

Comments
 (0)