-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.css
More file actions
42 lines (35 loc) · 1.93 KB
/
Copy pathscript.css
File metadata and controls
42 lines (35 loc) · 1.93 KB
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
*{margin:0;padding:0;box-sizing:border-box;}
body,html{height:100%;font-family:'Poppins',sans-serif;background:#050011;color:#eee;}
.hero{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100vh;overflow:hidden;padding:1rem;}
.wave-text{font-size:4rem;font-weight:900;
background:linear-gradient(90deg,#00f,#f0f,#0ff,#ff0);
background-size:200% 200%;
-webkit-text-fill-color:transparent;
background-clip:text;
animation: wave 5s ease infinite;
z-index:2;
}
@keyframes wave{0%,100%{background-position:0% 50%;}50%{background-position:100% 50%;}}
.hero p{margin:1.5rem 0;font-size:1.2rem;max-width:600px;line-height:1.4;z-index:2;}
.btn{z-index:2;display:inline-block;padding:1rem 2rem;font-size:1.1rem;background:#ff0a7e;color:#050011;border-radius:40px;text-decoration:none;font-weight:600;transition:transform .3s ease,box-shadow .3s ease;}
.btn:hover{transform:scale(1.05);box-shadow:0 8px 20px rgba(255,10,126,0.4);}
/* Particle effect */
.particles{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;z-index:1;}
.particles span{position:absolute;display:block;width:6px;height:6px;background:rgba(255,255,255,0.2);border-radius:50%;bottom:100%;animation: rise 8s linear infinite;}
.particles span:nth-child(odd){width:8px;height:8px;background:rgba(255,255,255,0.15);animation-duration:10s;}
.particles span:nth-child(even){animation-duration:12s;}
.particles span:nth-child(3n){left:10%;}
.particles span:nth-child(4n){left:30%;}
/* add more positions randomly */
.particles span:nth-child(5n){left:50%;}
.particles span:nth-child(6n){left:70%;}
.particles span:nth-child(7n){left:90%;}
@keyframes rise{
0%{transform: translateY(0) scale(0.5); opacity:0;}
50%{opacity:0.4;}
100%{transform: translateY(-120vh) scale(1); opacity:0;}
}
@media(max-width:600px){
.wave-text{font-size:3rem;}
.hero p{font-size:1rem;}
}