DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Modern Parallax Effect - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Modern Parallax Effect
rohit
Feb 13, 2026
5
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<section class="parallax-hero"> <!-- Animated Grid Background --> <div class="grid-background"></div> <!-- Glowing Orbs --> <div class="glow-orbs"> <div class="orb orb1"></div> <div class="orb orb2"></div> <div class="orb orb3"></div> </div> <!-- Main Content --> <div class="hero-content"> <div class="hero-tag"> Introducing the Future </div> <h1 class="hero-title"> Build Something<br> <span class="gradient-text">Extraordinary</span> </h1> <p class="hero-subtitle"> Transform your ideas into reality with our cutting-edge platform. Join thousands of creators who are already building the future. </p> <div class="cta-container"> <a href="#" class="btn btn-primary">Get Started Free</a> <a href="#" class="btn btn-secondary">Watch Demo</a> </div> <div class="stats-grid"> <div class="stat-box"> <div class="stat-number">50K+</div> <div class="stat-label">Active Users</div> </div> <div class="stat-box"> <div class="stat-number">4.9</div> <div class="stat-label">Rating</div> </div> <div class="stat-box"> <div class="stat-number">99%</div> <div class="stat-label">Uptime</div> </div> </div> </div> </section>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: #0a0a0a; color: white; overflow-x: hidden; } /* Main Parallax Section */ .parallax-hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(to bottom, #000000, #1a0033); } /* Animated Grid Background */ .grid-background { position: absolute; width: 100%; height: 100%; background-image: linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px); background-size: 50px 50px; animation: gridMove 20s linear infinite; transform-origin: center; } @keyframes gridMove { 0% { transform: perspective(500px) rotateX(60deg) translateY(0); } 100% { transform: perspective(500px) rotateX(60deg) translateY(50px); } } /* Glowing Orbs */ .glow-orbs { position: absolute; width: 100%; height: 100%; filter: blur(100px); opacity: 0.6; } .orb { position: absolute; border-radius: 50%; } .orb1 { width: 600px; height: 600px; background: radial-gradient(circle, #8b5cf6, transparent); top: -200px; left: -200px; animation: float1 15s infinite ease-in-out; } .orb2 { width: 500px; height: 500px; background: radial-gradient(circle, #ec4899, transparent); bottom: -150px; right: -150px; animation: float2 18s infinite ease-in-out; } .orb3 { width: 400px; height: 400px; background: radial-gradient(circle, #06b6d4, transparent); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float3 12s infinite ease-in-out; } @keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(100px, 100px); } } @keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-80px, -80px); } } @keyframes float3 { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(calc(-50% + 50px), calc(-50% - 50px)); } } /* Content Container */ .hero-content { position: relative; z-index: 10; text-align: center; max-width: 1100px; padding: 0 30px; } /* Tag */ .hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 100px; font-size: 14px; font-weight: 500; color: #c4b5fd; margin-bottom: 40px; animation: slideDown 0.8s ease; } .hero-tag::before { content: '✨'; font-size: 16px; } /* Main Heading */ .hero-title { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: 1.1; margin-bottom: 30px; letter-spacing: -0.02em; animation: slideUp 0.8s ease 0.2s both; } .gradient-text { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientShift 8s ease infinite; } @keyframes gradientShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } } /* Subtitle */ .hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300; color: #9ca3af; max-width: 700px; margin: 0 auto 50px; line-height: 1.7; animation: slideUp 0.8s ease 0.4s both; } /* CTA Buttons */ .cta-container { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; animation: slideUp 0.8s ease 0.6s both; } .btn { padding: 18px 40px; font-size: 16px; font-weight: 600; border-radius: 12px; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .btn-primary { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3); } .btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; } .btn-primary:hover::before { left: 100%; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5); } .btn-secondary { background: rgba(255, 255, 255, 0.05); color: white; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); } /* Floating Cards */ .floating-elements { position: absolute; width: 100%; height: 100%; pointer-events: none; } .float-card { position: absolute; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); } .card-1 { top: 15%; left: 8%; width: 280px; animation: floatCard 6s ease-in-out infinite; } .card-2 { bottom: 15%; right: 8%; width: 250px; animation: floatCard 7s ease-in-out infinite; animation-delay: 1s; } .card-3 { top: 45%; right: 15%; width: 220px; animation: floatCard 8s ease-in-out infinite; animation-delay: 2s; } @keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } } .card-icon { font-size: 40px; margin-bottom: 15px; display: block; } .card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: white; } .card-text { font-size: 14px; color: #9ca3af; line-height: 1.6; } /* Stats Section */ .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; animation: slideUp 0.8s ease 0.8s both; } .stat-box { text-align: center; } .stat-number { font-size: 48px; font-weight: 900; background: linear-gradient(135deg, #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; } .stat-label { font-size: 14px; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; } /* Animations */ @keyframes slideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Responsive */ @media (max-width: 1024px) { .float-card { display: none; } .stats-grid { gap: 30px; } } @media (max-width: 768px) { .hero-tag { font-size: 12px; padding: 8px 20px; } .hero-subtitle { font-size: 1rem; } .cta-container { flex-direction: column; padding: 0 20px; } .btn { width: 100%; text-align: center; } .stats-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 60px; } .stat-number { font-size: 36px; } }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!