Below is a single-file landing page you can drop straight into an .html file and open in a browser.
It packs in:
• Animated gradient hero background
• Interactive parallax-ish “floating blobs” on a <canvas>
• Tilt-on-hover cards that reveal themselves as you scroll
• Smooth scroll & CTA button hover ripple
Tweak colors, text, sections, or images to fit your brand. Have fun! 🚀
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Beautiful Animated Landing Page</title>
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap" rel="stylesheet" />
<style>
/* ========= CSS VARIABLES ========= */
:root{
--primary:#6C63FF;
--accent:#FF6584;
--bg-dark:#0F1020;
--text-light:#fff;
--card-bg:#1C1D2E;
--reveal-distance:80px;
--transition:.6s cubic-bezier(.2,.6,.2,1);
}
*,*::before,*::after{box-sizing:border-box;}
body{
margin:0;
font-family:'Poppins',sans-serif;
background:var(--bg-dark);
color:var(--text-light);
overflow-x:hidden;
scroll-behavior:smooth;
}
h1,h2,h3,p{margin:0;}
a{color:inherit;text-decoration:none;}
/* ========= HERO SECTION ========= */
header{
position:relative;
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
overflow:hidden;
}
header::before{
content:'';
position:absolute;inset:0;
background:linear-gradient(130deg,#6C63FF 0%,#FF6584 100%);
animation:bgMove 12s linear infinite alternate;
z-index:-2;
}
@keyframes bgMove{
from{transform:scale(1) translateX(0);}
to{transform:scale(1.2) translateX(-10%);}
}
header h1{font-size:clamp(2.5rem,5vw+1rem,5rem);font-weight:700;line-height:1.1;}
header p{margin:1rem auto 2.5rem;max-width:600px;font-weight:300;font-size:1.2rem;}
.btn{
position:relative;
display:inline-block;
padding:.9rem 2.2rem;
font-weight:500;
background:var(--bg-dark);
color:var(--text-light);
border-radius:50px;
overflow:hidden;
cursor:pointer;
transition:transform .25s;
}
.btn:hover{transform:translateY(-3px);}
.btn::after{
content:'';
position:absolute;
inset:0;
background:var(--accent);
transform:scaleX(0);
transform-origin:left;
transition:transform .35s;
z-index:-1;
}
.btn:hover::after{transform:scaleX(1);}
/* ========= SCROLL INDICATOR ========= */
.scroll-down{
position:absolute;
bottom:40px;
left:50%;
width:32px;
height:32px;
margin-left:-16px;
border-left:2px solid #fff;
border-bottom:2px solid #fff;
transform:rotate(-45deg);
animation:bounce 2s infinite;
}
@keyframes bounce{
0%,20%,50%,80%,100%{transform:translateX(-50%) translateY(0) rotate(-45deg);}
40%{transform:translateX(-50%) translateY(12px) rotate(-45deg);}
60%{transform:translateX(-50%) translateY(6px) rotate(-45deg);}
}
/* ========= CANVAS OVERLAY ========= */
#hero-canvas{
position:absolute;
inset:0;
width:100%;
height:100%;
z-index:-1;
}
/* ========= FEATURES SECTION ========= */
section{
padding:6rem 8vw;
position:relative;
}
.features-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:2.5rem;
margin-top:3rem;
}
.card{
background:var(--card-bg);
border-radius:20px;
padding:2.5rem 2rem;
min-height:340px;
transform-style:preserve-3d;
perspective:1000px;
cursor:pointer;
transition:var(--transition);
opacity:0;
translate:0 var(--reveal-distance);
}
.card.active{opacity:1;translate:0 0;}
.card h3{margin-bottom:1rem;font-size:1.4rem;font-weight:600;}
.card p{font-weight:300;line-height:1.6;}
/* ========= FOOTER ========= */
footer{
text-align:center;
padding:4rem 1rem;
font-size:.9rem;
background:#141527;
}
/* ========= MEDIA ========= */
@media(max-width:600px){
.btn{padding:.8rem 1.8rem;}
.card{padding:2rem 1.5rem;}
}
</style>
</head>
<body>
<!-- ========= HERO ========= -->
<header>
<canvas id="hero-canvas"></canvas>
<div class="hero-content">
<h1>Captivate Your Audience</h1>
<p>Create stunning experiences with smooth animations & interactive graphics—let your story unfold seamlessly.</p>
<a href="#features" class="btn">Explore More</a>
</div>
<a href="#features" class="scroll-down"></a>
</header>
<!-- ========= FEATURES ========= -->
<section id="features">
<h2 style="text-align:center;font-size:2.2rem;">What We Offer</h2>
<div class="features-grid">
<div class="card reveal">
<h3>Lightning-Fast Performance</h3>
<p>Your visitors deserve instant load times. We harness cutting-edge tech to make it happen.</p>
</div>
<div class="card reveal">
<h3>Responsive Design</h3>
<p>Looks gorgeous on every device—from desktops to wearables. Pixel-perfect at any size.</p>
</div>
<div class="card reveal">
<h3>Seamless Animations</h3>
<p>Engage users with elegant transitions and micro-interactions that feel organic and purposeful.</p>
</div>
<div class="card reveal">
<h3>Robust Security</h3>
<p>Industry-standard best practices keep your data locked down and your users confident.</p>
</div>
</div>
</section>
<!-- ========= CTA ========= -->
<section style="text-align:center;">
<h2 style="font-size:2.4rem;">Ready to elevate your brand?</h2>
<p style="max-width:560px;margin:1rem auto 2.5rem;">Jump-start your project with our team of passionate creatives and engineers.</p>
<a href="#" class="btn">Get Started</a>
</section>
<!-- ========= FOOTER ========= -->
<footer>
Crafted with ❤️ and lots of ☕. © 2024 Your Brand
</footer>
<!-- ========= SCRIPTS ========= -->
<script>
/* ===== INTERACTIVE FLOATING BLOBS ON CANVAS ===== */
(() => {
const canvas = document.getElementById('hero-canvas');
const ctx = canvas.getContext('2d');
let width, height;
const blobs = [];
const colors = ['rgba(255,255,255,0.25)','rgba(255,255,255,0.18)','rgba(255,255,255,0.12)'];
class Blob{
constructor(){
this.reset();
}
reset(){
this.x = Math.random()*width;
this.y = Math.random()*height;
this.radius = 50+Math.random()*70;
this.speedX = -1+Math.random()*2;
this.speedY = -1+Math.random()*2;
this.color = colors[Math.floor(Math.random()*colors.length)];
}
update(){
this.x += this.speedX;
this.y += this.speedY;
if(this.x<-this.radius||this.x>width+this.radius||this.y<-this.radius||this.y>height+this.radius){
this.reset();
if(Math.random()<.5) this.x = Math.random()<.5? -this.radius: width+this.radius;
else this.y = Math.random()<.5? -this.radius: height+this.radius;
}
}
draw(){
ctx.beginPath();
ctx.fillStyle=this.color;
ctx.arc(this.x,this.y,this.radius,0,Math.PI*2);
ctx.fill();
}
}
function resize(){
width = canvas.width = window.innerWidth;
height = canvas.height = window.innerHeight;
}
window.addEventListener('resize',resize);
resize();
for(let i=0;i<25;i++) blobs.push(new Blob());
function loop(){
ctx.clearRect(0,0,width,height);
blobs.forEach(b=>{b.update();b.draw();});
requestAnimationFrame(loop);
}
loop();
// Interactive: create burst of blobs on click
window.addEventListener('click',(e)=>{
for(let i=0;i<8;i++){
const b=new Blob();
b.x=e.clientX;
b.y=e.clientY;
b.radius=20+Math.random()*30;
blobs.push(b);
}
if(blobs.length>60) blobs.splice(0,blobs.length-60);
});
})();
/* ===== REVEAL ON SCROLL ===== */
(() => {
const reveals = document.querySelectorAll('.reveal');
const observer = new IntersectionObserver((entries)=>{
entries.forEach(entry=>{
if(entry.isIntersecting){
entry.target.classList.add('active');
observer.unobserve(entry.target);
}
});
},{threshold:0.25});
reveals.forEach(el=>observer.observe(el));
})();
/* ===== CARD TILT EFFECT ===== */
(() => {
const cards = document.querySelectorAll('.card');
const tilt = (e)=>{
const card=e.currentTarget;
const rect=card.getBoundingClientRect();
const x=(e.clientX-rect.left)/rect.width;
const y=(e.clientY-rect.top)/rect.height;
const tiltX=(y-.5)*12; // rotation around X-axis
const tiltY=(x-.5)*-12; // rotation around Y-axis
card.style.transform=`rotateX(${tiltX}deg) rotateY(${tiltY}deg) scale(1.03)`;
};
const reset=(e)=>e.currentTarget.style.transform='';
cards.forEach(card=>{
card.addEventListener('mousemove',tilt);
card.addEventListener('mouseleave',reset);
});
})();
</script>
</body>
</html>