Skip to content

Commit b39899b

Browse files
authored
Merge pull request #917 from arorasneha08/tech-animation-clean
Add tech-animation feature
2 parents abb6ec9 + 9fe6e44 commit b39899b

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

Animated Tech-theme/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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>Tech Animation - Classy</title>
8+
<link rel="stylesheet" href="style.css">
9+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
11+
</head>
12+
13+
<body>
14+
<div class="animation-container">
15+
<h1>Tech Universe</h1>
16+
<div class="tech-icons">
17+
<div class="icon html"><i class="fab fa-html5"></i></div>
18+
<div class="icon css"><i class="fab fa-css3-alt"></i></div>
19+
<div class="icon js"><i class="fab fa-js"></i></div>
20+
<div class="icon react"><i class="fab fa-react"></i></div>
21+
<div class="icon node"><i class="fab fa-node-js"></i></div>
22+
<div class="icon github"><i class="fab fa-github"></i></div>
23+
<div class="icon docker"><i class="fab fa-docker"></i></div>
24+
</div>
25+
</div>
26+
27+
<!-- Techy grid background -->
28+
<div class="tech-background"></div>
29+
</body>
30+
31+
</html>

Animated Tech-theme/style.css

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
font-family: 'Inter', sans-serif;
9+
background: #0d1117; /* dark tech theme */
10+
color: #fff;
11+
height: 100vh;
12+
overflow: hidden;
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
position: relative;
17+
}
18+
19+
.animation-container {
20+
text-align: center;
21+
z-index: 2;
22+
}
23+
24+
h1 {
25+
font-size: 2.5rem;
26+
color: #00ffff;
27+
margin-bottom: 2rem;
28+
letter-spacing: 1px;
29+
text-shadow: 0 0 15px rgba(0,255,255,0.3);
30+
}
31+
32+
.tech-icons {
33+
display: flex;
34+
flex-wrap: wrap;
35+
justify-content: center;
36+
gap: 2rem;
37+
}
38+
39+
.icon {
40+
background: #1a1a1a;
41+
border-radius: 50%;
42+
width: 80px;
43+
height: 80px;
44+
display: flex;
45+
justify-content: center;
46+
align-items: center;
47+
font-size: 2rem;
48+
color: #00ffff;
49+
cursor: pointer;
50+
transition: transform 0.5s, box-shadow 0.5s;
51+
box-shadow: 0 0 10px rgba(0,255,255,0.2);
52+
animation: float 5s ease-in-out infinite;
53+
}
54+
55+
.icon:hover {
56+
transform: scale(1.2) rotate(-5deg);
57+
box-shadow: 0 0 25px rgba(0,255,255,0.7);
58+
}
59+
60+
/* Floating animation */
61+
@keyframes float {
62+
0% { transform: translateY(0); }
63+
50% { transform: translateY(-15px); }
64+
100% { transform: translateY(0); }
65+
}
66+
67+
/* Background tech grid */
68+
.tech-background {
69+
position: absolute;
70+
top: 0;
71+
left: 0;
72+
width: 100%;
73+
height: 100%;
74+
background-image:
75+
linear-gradient(rgba(0,255,255,0.05) 1px, transparent 1px),
76+
linear-gradient(90deg, rgba(0,255,255,0.05) 1px, transparent 1px);
77+
background-size: 50px 50px;
78+
z-index: 1;
79+
animation: moveGrid 20s linear infinite;
80+
}
81+
82+
@keyframes moveGrid {
83+
0% { background-position: 0 0, 0 0; }
84+
100% { background-position: -50px -50px, -50px -50px; }
85+
}

0 commit comments

Comments
 (0)