Skip to content

Commit 942ccaf

Browse files
added my floating hologram animation (#2934)
Co-authored-by: Laureline Paris <[email protected]>
1 parent 1063616 commit 942ccaf

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artName": "Floating Hologram",
3+
"githubHandle": "DewaldFourie"
4+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
}

0 commit comments

Comments
 (0)