Spaces:
Running

undefined / index.html
Argo1's picture
make the scrolling animated revealing of the downside fo the website
00c783a verified
Raw History Blame Contribute Delete
11.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colorless Wonderland</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.11.4/dist/gsap.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Space Grotesk', sans-serif;
}
.gradient-text {
background: linear-gradient(90deg, #000000, #333333, #666666, #999999);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.vanta-bg {
min-height: 100vh;
overflow: hidden;
}
.floating {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
.rotate {
animation: rotate 15s linear infinite;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
</style>
</head>
<body class="text-gray-900 bg-white">
<div id="vanta-bg" class="vanta-bg flex flex-col">
<header class="py-6 px-4 sm:px-8 lg:px-12 backdrop-blur-sm">
<div class="container mx-auto flex justify-between items-center">
<h1 class="text-3xl font-bold gradient-text floating">3Dimensional Delight</h1>
<nav class="hidden md:flex space-x-8">
<a href="#" class="hover:text-gray-600 transition duration-300">Home</a>
<a href="#" class="hover:text-gray-600 transition duration-300">Explore</a>
<a href="#" class="hover:text-gray-600 transition duration-300">About</a>
<a href="#" class="hover:text-gray-600 transition duration-300">Contact</a>
</nav>
<button class="md:hidden">
<i data-feather="menu"></i>
</button>
</div>
</header>
<main class="flex-grow flex items-center justify-center px-4">
<div class="text-center max-w-4xl">
<h2 class="text-5xl md:text-7xl font-bold mb-6 gradient-text floating">Enter the 3D Universe</h2>
<p class="text-xl md:text-2xl text-gray-700 mb-8 rotate">Watch as elements come to life in this immersive 3D experience.</p>
<div class="flex flex-col sm:flex-row justify-center gap-4">
<button class="px-8 py-3 bg-black text-white rounded-full hover:bg-gray-800 transition duration-300">Explore Now</button>
<button class="px-8 py-3 border-2 border-black rounded-full hover:bg-gray-100 transition duration-300">Learn More</button>
</div>
</div>
</main>
<section class="py-20 px-4 sm:px-8 lg:px-12 bg-white">
<div class="container mx-auto">
<h2 class="text-4xl font-bold text-center mb-16 gradient-text">Featured Creations</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-gray-50 p-6 rounded-xl hover:shadow-lg transition-all duration-500 transform hover:-translate-y-2">
<img src="http://static.photos/technology/640x360/1" alt="3D Model" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-semibold mb-2">Abstract Sculpture</h3>
<p class="text-gray-600">Explore the depths of digital abstraction in this unique piece.</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl hover:shadow-lg transition-all duration-500 transform hover:-translate-y-2 delay-100">
<img src="http://static.photos/minimal/640x360/2" alt="3D Model" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-semibold mb-2">Minimalist Design</h3>
<p class="text-gray-600">Less is more in this beautifully simple 3D composition.</p>
</div>
<div class="bg-gray-50 p-6 rounded-xl hover:shadow-lg transition-all duration-500 transform hover:-translate-y-2 delay-200">
<img src="http://static.photos/abstract/640x360/3" alt="3D Model" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-semibold mb-2">Futuristic Vision</h3>
<p class="text-gray-600">A glimpse into the future of 3D modeling and design.</p>
</div>
</div>
</div>
</section>
<section class="py-20 px-4 sm:px-8 lg:px-12 bg-gray-100">
<div class="container mx-auto flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-8 md:mb-0 animate-pulse">
<img src="http://static.photos/technology/640x360/4" alt="3D Process" class="rounded-xl shadow-xl transform hover:rotate-6 transition duration-500">
</div>
<div class="md:w-1/2 md:pl-12">
<h2 class="text-4xl font-bold mb-6 gradient-text">Our Creative Process</h2>
<div class="space-y-6">
<div class="flex items-start">
<div class="flex-shrink-0 bg-black text-white rounded-full w-10 h-10 flex items-center justify-center mr-4">1</div>
<div>
<h3 class="text-xl font-semibold mb-2">Conceptualization</h3>
<p class="text-gray-600">We start with innovative ideas and sketches to map out the vision.</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 bg-black text-white rounded-full w-10 h-10 flex items-center justify-center mr-4">2</div>
<div>
<h3 class="text-xl font-semibold mb-2">Modeling</h3>
<p class="text-gray-600">Using advanced tools to bring concepts to three-dimensional life.</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 bg-black text-white rounded-full w-10 h-10 flex items-center justify-center mr-4">3</div>
<div>
<h3 class="text-xl font-semibold mb-2">Refinement</h3>
<p class="text-gray-600">Perfecting every detail through iterative enhancement.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="py-20 px-4 sm:px-8 lg:px-12 bg-white">
<div class="container mx-auto text-center">
<h2 class="text-4xl font-bold mb-6 gradient-text">Join Our Community</h2>
<p class="text-xl text-gray-600 mb-8 max-w-2xl mx-auto">Be part of our growing network of 3D enthusiasts and professionals.</p>
<div class="bg-gradient-to-r from-gray-100 to-gray-200 p-1 rounded-full max-w-xl mx-auto hover:from-gray-200 hover:to-gray-300 transition duration-500">
<div class="bg-white rounded-full overflow-hidden">
<form class="flex">
<input type="email" placeholder="Enter your email" class="flex-grow px-6 py-3 focus:outline-none">
<button class="bg-black text-white px-6 py-3 rounded-full transform hover:scale-105 transition duration-300">Subscribe</button>
</form>
</div>
</div>
</div>
</section>
<footer class="py-8 px-4 sm:px-8 lg:px-12 bg-black text-white">
<div class="container mx-auto flex flex-col md:flex-row justify-between items-center">
<p>© 2023 3Dimensional Delight. All rights reserved.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="instagram"></i></a>
<a href="#"><i data-feather="github"></i></a>
<a href="#"><i data-feather="linkedin"></i></a>
</div>
</div>
</footer>
</div>
<script>
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3a3a3a,
backgroundColor: 0xf8f8f8,
points: 12.00,
maxDistance: 22.00,
spacing: 18.00
});
gsap.from("h1", {duration: 1.5, y: -100, opacity: 0, ease: "bounce.out"});
gsap.from("h2", {duration: 1.5, x: -200, opacity: 0, delay: 0.5, ease: "power3.out"});
gsap.from("p", {duration: 1.5, x: 200, opacity: 0, delay: 0.8, ease: "power3.out"});
gsap.from("button", {duration: 1, opacity: 0, delay: 1.2, y: 50, stagger: 0.2});
// Enhanced scroll animations
gsap.utils.toArray("section").forEach(section => {
ScrollTrigger.create({
trigger: section,
start: "top 85%",
onEnter: () => {
gsap.from(section.querySelectorAll('h2, h3, p, img, div'), {
y: 50,
opacity: 0,
duration: 0.8,
stagger: 0.1,
ease: "back.out(1.2)"
});
},
markers: false
});
});
// Staggered animations for featured items
gsap.utils.toArray(".grid > div").forEach((item, i) => {
ScrollTrigger.create({
trigger: item,
start: "top 85%",
onEnter: () => {
gsap.from(item, {
x: i % 2 ? 100 : -100,
opacity: 0,
duration: 0.8,
ease: "back.out(1.7)",
delay: i * 0.15
});
}
});
});
</script>
<script>
feather.replace();
// Add subtle parallax effects to images
gsap.utils.toArray("img").forEach(img => {
ScrollTrigger.create({
trigger: img,
start: "top 85%",
onEnter: () => {
gsap.to(img, {
y: -30,
scrollTrigger: {
trigger: img,
scrub: 1
}
});
}
});
});
</script>
</body>
</html>