1+ body {
2+ margin : 0 ;
3+ padding : 0 ;
4+ font-family : 'Poppins' , sans-serif;
5+ background-color : # 0D0D0D ;
6+ margin : 10% ;
7+ }
8+
9+ .container {
10+ display : flex;
11+ flex-direction : column;
12+ justify-content : center;
13+ align-items : flex-start;
14+ height : 200vh ;
15+ }
16+
17+ .text {
18+ font-size : 10vw ;
19+ letter-spacing : -.01em ;
20+ line-height : 100% ;
21+ margin : 0 ;
22+
23+ width : 100% ;
24+ color : rgb (182 , 182 , 182 , 0.2 );
25+ background : linear-gradient (to right, # b6b6b6, # b6b6b6 ) no-repeat;
26+ -webkit-background-clip : text;
27+ background-clip : text;
28+ background-size : 0% ;
29+ transition : background-size cubic-bezier (.1 , .5 , .5 , 1 ) 0.5s ;
30+
31+
32+ border-bottom : 1px solid # 2F2B28 ;
33+
34+ display : flex;
35+ flex-direction : column;
36+ align-items : flex-start;
37+ justify-content : center;
38+ position : relative;
39+ }
40+
41+ span {
42+ position : absolute;
43+ width : 100% ;
44+ height : 100% ;
45+ background-color : # 4246ce ;
46+ color : # 0D0D0D ;
47+
48+ clip-path : polygon (0 50% , 100% 50% , 100% 50% , 0 50% );
49+ transform-origin : center;
50+ transition : all cubic-bezier (.1 , .5 , .5 , 1 ) 0.4s ;
51+
52+ display : flex;
53+ flex-direction : column;
54+ justify-content : center;
55+ }
56+
57+ .text : hover > span {
58+ clip-path : polygon (0 0 , 100% 0 , 100% 100% , 0% 100% );
59+ }
60+
61+ a {
62+ text-decoration : none;
63+ color : inherit;
64+ }
0 commit comments