-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.css
More file actions
116 lines (98 loc) · 2.28 KB
/
code.css
File metadata and controls
116 lines (98 loc) · 2.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,body {
background: #0b0b0b;
overflow: hidden;
height: 100%;
width: 100%;
}
#particleCanvas {
position: fixed;
inset: 0;
z-index: 5;
pointer-events: none;
}
.grid {
position: fixed;
inset: 0;
z-index: 1;
}
/* FULL PAGE GRID */
#grid {
width: 100vw;
height: 100vh;
display: grid;
gap: 0;
padding: 0;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
}
/* EACH TILE */
.box {
position: relative;
perspective: 1000px;
overflow: hidden;
border-radius: 1px;
}
/* FLIP CARD */
.box::before,
.box::after {
inset: 0;
content: "";
position: absolute;
width: 300px;
height: 300px;
backface-visibility: hidden;
transition: transform 0.8s cubic-bezier(0.1, 0.4, 0.4, 2);
}
/* FRONT */
.box::before {
background: linear-gradient(135deg,#28282B,#28282B);
transform: rotateY(0deg);
}
/* BACK */
.box::after {
background: linear-gradient(135deg,#CCFF33, #CCFF33);
transform: rotateY(180deg);
}
/* HOVER EFFECT */
.box:hover::before {
transform: rotateY(180deg);
}
.box:hover::after {
transform: rotateY(360deg);
}
.subtitle {
position: relative; /* Stay on screen */
top: 60%; /* Adjust vertical position as needed */
left: 50%; /* Center horizontally */
transform: translate(-50%, -50%);
color: #fff; /* Neon white */
font-family: 'Arial', sans-serif;
font-size: 1.5rem; /* Adjust size */
letter-spacing: 1px;
text-align: center;
pointer-events: none; /* Let mouse pass through */
z-index: 10;
}
.intro:hover{
opacity: 0.5;
}
.intro{
position: relative; /* Stay on screen */
top: 65%; /* Adjust vertical position as needed */
left: 50%; /* Center horizontally */
transform: translate(-50%, -50%);
color:#CCFF33 ;
background-color: #28282B; /* Neon white */
font-family: 'Arial', sans-serif;
font-size: 1.5rem; /* Adjust size */
letter-spacing: 1px;
text-align: center;
z-index: 10;
width: 500px;
height: 100px;
}