File tree Expand file tree Collapse file tree 3 files changed +75
-0
lines changed
Art/DewaldFourie-Floating-Hologram Expand file tree Collapse file tree 3 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+
4
+ < head >
5
+ < meta charset ="UTF-8 " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
+ < title > Hologram Card Animation</ title >
8
+ < link rel ="stylesheet " href ="styles.css " />
9
+ </ head >
10
+
11
+ < body >
12
+ < div class ="holo-container ">
13
+ < div class ="holo-card ">
14
+ < h2 > DEWALD FOURIE's</ h2 >
15
+ < p > Floating Hologram</ p >
16
+ </ div >
17
+ </ div >
18
+ </ body >
19
+
20
+ </ html >
Original file line number Diff line number Diff line change
1
+ {
2
+ "artName" : " Floating Hologram" ,
3
+ "githubHandle" : " DewaldFourie"
4
+ }
Original file line number Diff line number Diff line change
1
+ body {
2
+ background : # 0f0f0f ;
3
+ color : # fff ;
4
+ display : flex;
5
+ align-items : center;
6
+ justify-content : center;
7
+ height : 100vh ;
8
+ margin : 0 ;
9
+ font-family : 'Courier New' , monospace;
10
+ }
11
+
12
+ .holo-container {
13
+ perspective : 1000px ;
14
+ }
15
+
16
+ .holo-card {
17
+ background : rgba (0 , 255 , 200 , 0.1 );
18
+ border : 2px solid # 00ffc8 ;
19
+ box-shadow : 0 0 20px # 00ffc8, inset 0 0 10px # 00ffc8 ;
20
+ border-radius : 10px ;
21
+ padding : 2rem ;
22
+ width : 300px ;
23
+ text-align : center;
24
+ animation : floatCard 5s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
25
+ transform-style : preserve-3d;
26
+ transform-origin : center;
27
+ }
28
+
29
+ @keyframes floatCard {
30
+
31
+ 0% ,
32
+ 100% {
33
+ transform : rotateX (5deg ) rotateY (-5deg ) translateY (0 );
34
+ }
35
+
36
+ 50% {
37
+ transform : rotateX (-5deg ) rotateY (5deg ) translateY (-10px );
38
+ }
39
+ }
40
+
41
+ @keyframes glowPulse {
42
+
43
+ 0% ,
44
+ 100% {
45
+ box-shadow : 0 0 20px # 00ffc8, inset 0 0 10px # 00ffc8 ;
46
+ }
47
+
48
+ 50% {
49
+ box-shadow : 0 0 30px # 00ffc8, inset 0 0 20px # 00ffc8 ;
50
+ }
51
+ }
You can’t perform that action at this time.
0 commit comments