File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Loader/word_animated_loader/code Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments