Spaces:
Running
Running
add a animation for cosmic creator
Browse files- index.html +31 -4
index.html
CHANGED
|
@@ -47,7 +47,22 @@
|
|
| 47 |
body {
|
| 48 |
font-family: 'Space Grotesk', sans-serif;
|
| 49 |
}
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
width: 8px;
|
| 52 |
height: 8px;
|
| 53 |
background-color: #6e45e2;
|
|
@@ -131,9 +146,12 @@
|
|
| 131 |
<img src="http://static.photos/technology/320x240/42" alt="Profile" class="w-full h-full object-cover">
|
| 132 |
</div>
|
| 133 |
<h1 class="text-5xl md:text-7xl font-bold mb-4">
|
| 134 |
-
<span class="bg-gradient-to-r from-cosmic to-nebula bg-clip-text text-transparent">
|
|
|
|
|
|
|
|
|
|
| 135 |
</h1>
|
| 136 |
-
|
| 137 |
Designing stellar digital experiences that orbit beyond imagination
|
| 138 |
</p>
|
| 139 |
<div class="flex flex-col sm:flex-row justify-center gap-4">
|
|
@@ -567,9 +585,18 @@
|
|
| 567 |
|
| 568 |
window.addEventListener("scroll", animateOnScroll);
|
| 569 |
window.addEventListener("load", animateOnScroll);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
|
| 571 |
// Initialize feather icons
|
| 572 |
feather.replace();
|
| 573 |
-
|
| 574 |
</body>
|
| 575 |
</html>
|
|
|
|
| 47 |
body {
|
| 48 |
font-family: 'Space Grotesk', sans-serif;
|
| 49 |
}
|
| 50 |
+
@keyframes textReveal {
|
| 51 |
+
0% {
|
| 52 |
+
transform: translateY(100%);
|
| 53 |
+
opacity: 0;
|
| 54 |
+
}
|
| 55 |
+
100% {
|
| 56 |
+
transform: translateY(0);
|
| 57 |
+
opacity: 1;
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
.animate-text-reveal {
|
| 61 |
+
animation: textReveal 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
|
| 62 |
+
animation-delay: var(--delay);
|
| 63 |
+
opacity: 0;
|
| 64 |
+
}
|
| 65 |
+
.cursor-dot {
|
| 66 |
width: 8px;
|
| 67 |
height: 8px;
|
| 68 |
background-color: #6e45e2;
|
|
|
|
| 146 |
<img src="http://static.photos/technology/320x240/42" alt="Profile" class="w-full h-full object-cover">
|
| 147 |
</div>
|
| 148 |
<h1 class="text-5xl md:text-7xl font-bold mb-4">
|
| 149 |
+
<span class="bg-gradient-to-r from-cosmic to-nebula bg-clip-text text-transparent relative inline-block">
|
| 150 |
+
<span class="animate-text-reveal inline-block" style="--delay: 0.1s">Cosmic</span>
|
| 151 |
+
</span>
|
| 152 |
+
<span class="animate-text-reveal inline-block" style="--delay: 0.3s">Creator</span>
|
| 153 |
</h1>
|
| 154 |
+
<p class="text-xl md:text-2xl text-nebula mb-8 max-w-2xl mx-auto">
|
| 155 |
Designing stellar digital experiences that orbit beyond imagination
|
| 156 |
</p>
|
| 157 |
<div class="flex flex-col sm:flex-row justify-center gap-4">
|
|
|
|
| 585 |
|
| 586 |
window.addEventListener("scroll", animateOnScroll);
|
| 587 |
window.addEventListener("load", animateOnScroll);
|
| 588 |
+
// Animate cosmic creator on load
|
| 589 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 590 |
+
setTimeout(() => {
|
| 591 |
+
const letters = document.querySelectorAll('.animate-text-reveal');
|
| 592 |
+
letters.forEach(letter => {
|
| 593 |
+
letter.style.animationPlayState = 'running';
|
| 594 |
+
});
|
| 595 |
+
}, 500);
|
| 596 |
+
});
|
| 597 |
|
| 598 |
// Initialize feather icons
|
| 599 |
feather.replace();
|
| 600 |
+
</script>
|
| 601 |
</body>
|
| 602 |
</html>
|