I'll create a beautiful landing page with smooth animations and interactive graphics for you. This will be a single HTML file with embedded CSS and JavaScript.
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stellar - Digital Innovation</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
overflow-x: hidden;
background: #0a0a0a;
color: #ffffff;
}
/* Navigation */
nav {
position: fixed;
width: 100%;
padding: 20px 50px;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
z-index: 1000;
transition: all 0.3s ease;
}
nav.scrolled {
padding: 15px 50px;
background: rgba(0, 0, 0, 0.9);
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 24px;
font-weight: bold;
background: linear-gradient(45deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
from { filter: drop-shadow(0 0 5px #667eea); }
to { filter: drop-shadow(0 0 20px #764ba2); }
}
.nav-links {
display: flex;
gap: 30px;
list-style: none;
}
.nav-links a {
color: #ffffff;
text-decoration: none;
transition: all 0.3s ease;
position: relative;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(45deg, #667eea, #764ba2);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
/* Hero Section */
.hero {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
}
.hero-content {
text-align: center;
z-index: 2;
animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
h1 {
font-size: 4rem;
margin-bottom: 20px;
background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradient 3s ease infinite;
background-size: 200% 200%;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.hero p {
font-size: 1.5rem;
margin-bottom: 30px;
opacity: 0.8;
}
.cta-button {
display: inline-block;
padding: 15px 40px;
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
text-decoration: none;
border-radius: 30px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.cta-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
transition: left 0.5s ease;
}
.cta-button:hover::before {
left: 100%;
}
.cta-button:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}
/* Animated Background */
.particles {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
background: #667eea;
border-radius: 50%;
animation: float 15s infinite linear;
}
@keyframes float {
from {
transform: translateY(100vh) translateX(0);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
to {
transform: translateY(-100vh) translateX(100px);
opacity: 0;
}
}
/* Features Section */
.features {
padding: 100px 50px;
max-width: 1200px;
margin: 0 auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
margin-top: 50px;
}
.feature-card {
background: rgba(255, 255, 255, 0.05);
padding: 40px;
border-radius: 20px;
text-align: center;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
transform: rotate(45deg);
transition: all 0.5s ease;
opacity: 0;
}
.feature-card:hover::before {
opacity: 1;
}
.feature-card:hover {
transform: translateY(-10px);
border-color: #667eea;
box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}
.feature-icon {
width: 80px;
height: 80px;
margin: 0 auto 20px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
}
.feature-card h3 {
font-size: 24px;
margin-bottom: 15px;
}
.feature-card p {
opacity: 0.8;
line-height: 1.6;
}
/* Interactive Canvas Section */
.canvas-section {
padding: 100px 0;
text-align: center;
position: relative;
}
#interactiveCanvas {
border: 1px solid rgba(102, 126, 234, 0.3);
border-radius: 20px;
cursor: crosshair;
background: rgba(0, 0, 0, 0.5);
}
.canvas-instruction {
margin-top: 20px;
opacity: 0.7;
}
/* Footer */
footer {
padding: 50px;
text-align: center;
background: rgba(0, 0, 0, 0.8);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Responsive */
@media (max-width: 768px) {
h1 {
font-size: 2.5rem;
}
.nav-links {
display: none;
}
.features {
padding: 50px 20px;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav id="navbar">
<div class="nav-container">
<div class="logo">Stellar</div>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#interactive">Interactive</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<!-- Hero Section -->
<section class="hero" id="home">
<div class="particles" id="particles"></div>
<div class="hero-content">
<h1>Welcome to the Future</h1>
<p>Experience digital innovation like never before</p>
<a href="#features" class="cta-button">Explore Now</a>
</div>
</section>
<!-- Features Section -->
<section class="features" id="features">
<h2 style="text-align: center; font-size: 3rem; margin-bottom: 20px;">Our Features</h2>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">🚀</div>
<h3>Lightning Fast</h3>
<p>Experience blazing fast performance with our optimized solutions that deliver results in milliseconds.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🎨</div>
<h3>Beautiful Design</h3>
<p>Stunning visuals and intuitive interfaces that make every interaction a delightful experience.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<h3>Secure & Reliable</h3>
<p>Bank-level security ensures your data is always protected with state-of-the-art encryption.</p>
</div>
</div>
</section>
<!-- Interactive Canvas Section -->
<section class="canvas-section" id="interactive">
<h2 style="font-size: 3rem; margin-bottom: 30px;">Interactive Experience</h2>
<canvas id="interactiveCanvas" width="800" height="400"></canvas>
<p class="canvas-instruction">Click and drag to create beautiful particle trails!</p>
</section>
<!-- Footer -->
<footer id="contact">
<p>© 2024 Stellar. All rights reserved. | Crafted with ❤️</p>
</footer>
<script>
// Navbar scroll effect
window.addEventListener('scroll', function() {
const navbar = document.getElementById('navbar');
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
// Smooth scrolling
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Particle animation
function createParticles() {
const particlesContainer = document.getElementById('particles');
const particleCount = 50;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.className = 'particle';
particle.style.left = Math.random() * 100 + '%';
particle.style.animationDelay = Math.random() * 15 + 's';
particle.style.animationDuration = (Math.random() * 10 + 10) + 's';
particlesContainer.appendChild(particle);
}
}
createParticles();
// Interactive Canvas
const canvas = document.getElementById('interactiveCanvas');
const ctx = canvas.getContext('2d');
let isDrawing = false;
let particles = [];
// Resize canvas for mobile
function resizeCanvas() {
canvas.width = Math.min(800, window.innerWidth - 40);
canvas.height = 400;
}
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
class Particle {
constructor(x, y) {
this.x = x;
this.y = y;
this.vx = (Math.random() - 0.5) * 2;
this.vy = (Math.random() - 0.5) * 2;
this.radius = Math.random() * 3 + 1;
this.life = 100;
this.color = `hsl(${Math.random() * 60 + 240}, 70%, 60%)`;
}
update() {
this.x += this.vx;
this.y += this.vy;
this.life -= 1;
this.radius *= 0.98;
}
draw() {
ctx.globalAlpha = this.life / 100;
ctx.fillStyle = this.color;
ctx.beginPath();
ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
ctx.fill();
ctx.globalAlpha = 1;
}
}
function animate() {
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
particles = particles.filter(particle => {
particle.update();
particle.draw();
return particle.life > 0;
});
requestAnimationFrame(animate);
}
animate();
canvas.addEventListener('mousedown', () => isDrawing = true);
canvas.addEventListener('mouseup', () => isDrawing = false);
canvas.addEventListener('mousemove', (e) => {
if (!isDrawing) return;
const rect = canvas.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
for (let i = 0; i < 5; i++) {
particles.push(new Particle(x, y));
}
});
// Touch events for mobile
canvas.addEventListener('touchstart', (e) => {
isDrawing = true;
e.preventDefault();
});
canvas.addEventListener('touchend', () => isDrawing = false);
canvas.addEventListener('touchmove', (e) => {
if (!isDrawing