I need this section to have some animation and rise up slowly upon loading the page
Browse files- index.html +12 -4
index.html
CHANGED
|
@@ -33,8 +33,16 @@
|
|
| 33 |
<div class="flex-shrink-0 flex items-center">
|
| 34 |
<img id="logo" src="https://huggingface.co/spaces/Twinory/undefined/resolve/main/images/TWINORY%20Logo%20-%20Edited.png" alt="Twinory Logo" class="h-10 opacity-0">
|
| 35 |
<span id="tagline" class="text-xs text-yellow-400 opacity-0 ml-2">Just list it, with perfection!</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
</div>
|
| 37 |
-
</div>
|
| 38 |
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
|
| 39 |
<a href="#" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:text-orange-400">Home</a>
|
| 40 |
<a href="about.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">About</a>
|
|
@@ -56,9 +64,9 @@
|
|
| 56 |
<div class="hero-bg pt-32 pb-20 md:pt-40 md:pb-32">
|
| 57 |
<div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
| 58 |
<div class="absolute inset-0 bg-[url('https://static.photos/legal/1200x630/42')] opacity-10 bg-cover bg-center -z-10"></div>
|
| 59 |
-
<img src="https://huggingface.co/spaces/Twinory/undefined/resolve/main/images/TWINORY%20Logo%20-%20Edited.png" alt="Twinory Logo" class="h-80 mx-auto mb-6">
|
| 60 |
-
<p class="text-xl md:text-2xl text-gray-300 max-w-3xl mx-auto">
|
| 61 |
-
|
| 62 |
</p>
|
| 63 |
</div>
|
| 64 |
</div>
|
|
|
|
| 33 |
<div class="flex-shrink-0 flex items-center">
|
| 34 |
<img id="logo" src="https://huggingface.co/spaces/Twinory/undefined/resolve/main/images/TWINORY%20Logo%20-%20Edited.png" alt="Twinory Logo" class="h-10 opacity-0">
|
| 35 |
<span id="tagline" class="text-xs text-yellow-400 opacity-0 ml-2">Just list it, with perfection!</span>
|
| 36 |
+
</div>
|
| 37 |
+
<script>
|
| 38 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 39 |
+
setTimeout(() => {
|
| 40 |
+
document.getElementById('hero-logo').classList.remove('opacity-0', 'translate-y-10');
|
| 41 |
+
document.getElementById('hero-tagline').classList.remove('opacity-0', 'translate-y-10');
|
| 42 |
+
}, 200);
|
| 43 |
+
});
|
| 44 |
+
</script>
|
| 45 |
</div>
|
|
|
|
| 46 |
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
|
| 47 |
<a href="#" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:text-orange-400">Home</a>
|
| 48 |
<a href="about.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">About</a>
|
|
|
|
| 64 |
<div class="hero-bg pt-32 pb-20 md:pt-40 md:pb-32">
|
| 65 |
<div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
| 66 |
<div class="absolute inset-0 bg-[url('https://static.photos/legal/1200x630/42')] opacity-10 bg-cover bg-center -z-10"></div>
|
| 67 |
+
<img id="hero-logo" src="https://huggingface.co/spaces/Twinory/undefined/resolve/main/images/TWINORY%20Logo%20-%20Edited.png" alt="Twinory Logo" class="h-80 mx-auto mb-6 opacity-0 transform translate-y-10 transition-all duration-1000">
|
| 68 |
+
<p id="hero-tagline" class="text-xl md:text-2xl text-gray-300 max-w-3xl mx-auto opacity-0 transform translate-y-10 transition-all duration-1000 delay-300">
|
| 69 |
+
Just list it, with perfection!
|
| 70 |
</p>
|
| 71 |
</div>
|
| 72 |
</div>
|