Update index.html
Browse files- index.html +96 -19
index.html
CHANGED
@@ -1,19 +1,96 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Animated Million Gradio Developers</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
display: flex;
|
10 |
+
justify-content: center;
|
11 |
+
align-items: center;
|
12 |
+
height: 100vh;
|
13 |
+
margin: 0;
|
14 |
+
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
15 |
+
font-family: 'Arial', sans-serif;
|
16 |
+
overflow: hidden;
|
17 |
+
}
|
18 |
+
.container {
|
19 |
+
text-align: center;
|
20 |
+
position: relative;
|
21 |
+
}
|
22 |
+
svg {
|
23 |
+
max-width: 100%;
|
24 |
+
height: auto;
|
25 |
+
}
|
26 |
+
.text-stroke {
|
27 |
+
stroke: #fff;
|
28 |
+
stroke-width: 2;
|
29 |
+
stroke-dasharray: 1500;
|
30 |
+
stroke-dashoffset: 1500;
|
31 |
+
animation: dash 3s linear forwards;
|
32 |
+
fill: transparent;
|
33 |
+
font-weight: bold;
|
34 |
+
font-size: 60px;
|
35 |
+
}
|
36 |
+
.counter {
|
37 |
+
font-size: 80px;
|
38 |
+
color: white;
|
39 |
+
font-weight: bold;
|
40 |
+
margin-bottom: 20px;
|
41 |
+
}
|
42 |
+
@keyframes dash {
|
43 |
+
to {
|
44 |
+
stroke-dashoffset: 0;
|
45 |
+
fill: white;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
@keyframes fadeIn {
|
49 |
+
to {
|
50 |
+
opacity: 1;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
</style>
|
54 |
+
</head>
|
55 |
+
<body>
|
56 |
+
<div class="container">
|
57 |
+
<div class="counter" id="counter">0</div>
|
58 |
+
<svg width="800" height="200" viewBox="0 0 800 200">
|
59 |
+
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" class="text-stroke">Gradio Developers</text>
|
60 |
+
</svg>
|
61 |
+
</div>
|
62 |
+
|
63 |
+
<script>
|
64 |
+
// Counter animation
|
65 |
+
const counter = document.getElementById('counter');
|
66 |
+
let count = 0;
|
67 |
+
const target = 1000000;
|
68 |
+
const duration = 3000;
|
69 |
+
const increment = target / (duration / 16);
|
70 |
+
|
71 |
+
function animateCounter() {
|
72 |
+
if (count < target) {
|
73 |
+
count += increment;
|
74 |
+
if (count > target) count = target;
|
75 |
+
counter.textContent = Math.floor(count).toLocaleString();
|
76 |
+
requestAnimationFrame(animateCounter);
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
// Start animations after a short delay
|
81 |
+
setTimeout(() => {
|
82 |
+
animateCounter();
|
83 |
+
}, 500);
|
84 |
+
|
85 |
+
// Resize SVG text on window resize
|
86 |
+
function resizeText() {
|
87 |
+
const svg = document.querySelector('svg');
|
88 |
+
const newWidth = Math.min(window.innerWidth - 40, 800);
|
89 |
+
svg.setAttribute('width', newWidth);
|
90 |
+
}
|
91 |
+
|
92 |
+
window.addEventListener('resize', resizeText);
|
93 |
+
resizeText();
|
94 |
+
</script>
|
95 |
+
</body>
|
96 |
+
</html>
|