1+ body {
2+ margin : 0 ;
3+ height : 100vh ;
4+ display : flex;
5+ justify-content : center;
6+ align-items : center;
7+ background : # 0a0a0a ;
8+ overflow : hidden;
9+ }
10+
11+ .text-container {
12+ position : relative;
13+ font-family : 'Arial' , sans-serif;
14+ font-size : 4rem ;
15+ font-weight : bold;
16+ color : # fff ;
17+ text-transform : uppercase;
18+ letter-spacing : 0.2rem ;
19+ text-shadow : 0 0 10px rgba (0 , 255 , 255 , 0.8 ),
20+ 0 0 20px rgba (0 , 255 , 255 , 0.6 ),
21+ 0 0 30px rgba (0 , 255 , 255 , 0.4 );
22+ animation : pulse 2s ease-in-out infinite;
23+ }
24+
25+ .text-container ::before {
26+ content : '' ;
27+ position : absolute;
28+ top : 50% ;
29+ left : -100% ;
30+ width : 200% ;
31+ height : 2px ;
32+ background : linear-gradient (to right, transparent, # 00ffff, transparent);
33+ animation : slide 3s linear infinite;
34+ }
35+
36+ @keyframes pulse {
37+ 0% , 100% {
38+ text-shadow : 0 0 10px rgba (0 , 255 , 255 , 0.8 ),
39+ 0 0 20px rgba (0 , 255 , 255 , 0.6 ),
40+ 0 0 30px rgba (0 , 255 , 255 , 0.4 );
41+ }
42+ 50% {
43+ text-shadow : 0 0 20px rgba (0 , 255 , 255 , 1 ),
44+ 0 0 30px rgba (0 , 255 , 255 , 0.8 ),
45+ 0 0 40px rgba (0 , 255 , 255 , 0.6 );
46+ }
47+ }
48+
49+ @keyframes slide {
50+ 0% {
51+ transform : translateX (-100% );
52+ }
53+ 100% {
54+ transform : translateX (100% );
55+ }
56+ }
0 commit comments