Advanced Heroes
Video, 3D, animated and split-screen hero sections.
Video Background Hero
<div class="uk-hero-video">
<div class="uk-hero-video-bg"></div>
<div class="uk-hero-video-overlay"></div>
<div class="uk-hero-video-content">
<span class="uk-hero-pill">New · v2.0 is live</span>
<h1 class="uk-hero-title">Design at the speed of thought</h1>
<p class="uk-hero-desc">A complete toolkit for product teams.</p>
<div class="uk-hero-actions">
<button class="uk-hero-btn-white">Get Started</button>
<button class="uk-hero-btn-outline"><i class="fas fa-play"></i> Watch Video</button>
</div>
</div>
</div>
<style>
.uk-hero-video {
position: relative;
height: 480px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
color: #fff;
}
.uk-hero-video-bg {
position: absolute;
inset: 0;
background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1200&q=80') center/cover;
animation: zoom-bg 20s ease-in-out infinite alternate;
}
@keyframes zoom-bg {
from { transform: scale(1); }
to { transform: scale(1.1); }
}
.uk-hero-video-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(11,27,47,0.6) 0%, rgba(11,27,47,0.85) 100%);
}
.uk-hero-video-content {
position: relative;
padding: 2rem;
max-width: 640px;
}
.uk-hero-pill {
display: inline-block;
padding: 5px 14px;
background: rgba(255,255,255,0.15);
backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.3);
border-radius: 999px;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.05em;
margin-bottom: 1.25rem;
}
.uk-hero-title {
font-size: 2.75rem;
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.03em;
margin-bottom: 1rem;
}
.uk-hero-desc {
font-size: 1.05rem;
opacity: 0.85;
margin-bottom: 2rem;
}
.uk-hero-actions {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
}
.uk-hero-btn-white {
padding: 0.75rem 1.5rem;
background: #fff;
color: #0b1b2f;
border: 0;
border-radius: 0.5rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
}
.uk-hero-btn-white:hover { background: #f1f5f9; }
.uk-hero-btn-outline {
padding: 0.75rem 1.5rem;
background: transparent;
color: #fff;
border: 1.5px solid rgba(255,255,255,0.4);
border-radius: 0.5rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.uk-hero-btn-outline:hover { background: rgba(255,255,255,0.1); }
</style>
3D Floating Elements
<div class="uk-hero-3d">
<div class="uk-hero-3d-grid"></div>
<div class="uk-hero-3d-shape shape-1"></div>
<div class="uk-hero-3d-shape shape-2"></div>
<div class="uk-hero-3d-shape shape-3"></div>
<div class="uk-hero-3d-content">
<h1 class="uk-hero-3d-title">Build faster.<br><span>Ship smarter.</span></h1>
<p class="uk-hero-3d-desc">The modern toolkit.</p>
<button class="uk-hero-3d-btn">Start Free</button>
</div>
</div>
<style>
.uk-hero-3d {
position: relative;
padding: 5rem 2rem;
text-align: center;
overflow: hidden;
background: #0b1b2f;
color: #fff;
}
.uk-hero-3d-grid {
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(99,102,241,0.15) 1px, transparent 1px),
linear-gradient(90deg, rgba(99,102,241,0.15) 1px, transparent 1px);
background-size: 40px 40px;
mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
-webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}
.uk-hero-3d-shape {
position: absolute;
border-radius: 1rem;
background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(168,85,247,0.3));
backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.1);
animation: float 6s ease-in-out infinite;
}
.shape-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 60px; height: 60px; top: 60%; right: 15%; animation-delay: -2s; }
.shape-3 { width: 100px; height: 100px; bottom: 15%; left: 20%; animation-delay: -4s; }
@keyframes float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
}
.uk-hero-3d-content {
position: relative;
max-width: 600px;
margin: 0 auto;
}
.uk-hero-3d-title {
font-size: 3rem;
font-weight: 900;
line-height: 1.05;
letter-spacing: -0.04em;
margin-bottom: 1rem;
}
.uk-hero-3d-title span {
background: linear-gradient(90deg, #60a5fa, #a78bfa);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.uk-hero-3d-desc {
font-size: 1rem;
color: #94a3b8;
margin-bottom: 2rem;
}
.uk-hero-3d-btn {
padding: 0.85rem 2rem;
background: linear-gradient(135deg, #6366f1, #a855f7);
color: #fff;
border: 0;
border-radius: 0.6rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
box-shadow: 0 10px 30px rgba(99,102,241,0.4);
}
</style>
App Preview Split Hero
<div class="uk-hero-app">
<div class="uk-hero-app-text">
<span class="uk-hero-app-eyebrow">NEW FEATURE</span>
<h1 class="uk-hero-app-title">Manage everything</h1>
<p class="uk-hero-app-desc">All in one beautiful app.</p>
<div class="uk-hero-app-actions">
<button class="uk-hero-app-btn">Start Free</button>
</div>
</div>
<div class="uk-hero-app-mockup">
<div class="uk-hero-app-frame">...</div>
</div>
</div>
<style>
.uk-hero-app {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
padding: 4rem 3rem;
background: #f9fafc;
}
@media (max-width: 768px) {
.uk-hero-app { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
}
.uk-hero-app-eyebrow {
font-size: 0.7rem;
font-weight: 700;
color: #1e3a8a;
letter-spacing: 0.1em;
margin-bottom: 0.75rem;
display: block;
}
.uk-hero-app-title {
font-size: 2.25rem;
font-weight: 800;
color: #0b1b2f;
line-height: 1.15;
letter-spacing: -0.03em;
margin-bottom: 1rem;
}
.uk-hero-app-desc {
font-size: 1rem;
color: #64748b;
line-height: 1.6;
margin-bottom: 1.5rem;
}
.uk-hero-app-features {
margin-bottom: 2rem;
text-align: left;
}
.uk-hero-app-feature {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.88rem;
color: #475569;
margin-bottom: 0.5rem;
}
.uk-hero-app-feature i { color: #059669; font-size: 0.85rem; }
.uk-hero-app-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-start; }
.uk-hero-app-btn {
padding: 0.75rem 1.5rem;
background: #1e3a8a;
color: #fff;
border: 0;
border-radius: 0.5rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
}
.uk-hero-app-btn-ghost {
padding: 0.75rem 1.5rem;
background: transparent;
color: #1e3a8a;
border: 1.5px solid #1e3a8a;
border-radius: 0.5rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
}
.uk-hero-app-frame {
background: #fff;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 30px 60px rgba(11,27,47,0.15);
border: 1px solid #e2e8f0;
}
.uk-hero-app-bar {
display: flex;
gap: 6px;
padding: 0.75rem 1rem;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
}
.uk-hero-app-bar span {
width: 10px; height: 10px;
border-radius: 50%;
background: #cbd5e1;
}
.uk-hero-app-sidebar {
padding: 0.75rem;
background: #f8fafc;
border-right: 1px solid #f1f5f9;
display: inline-flex;
flex-direction: column;
gap: 6px;
vertical-align: top;
height: 220px;
}
.uk-hero-app-menu-item {
width: 20px; height: 20px;
border-radius: 4px;
background: #e2e8f0;
}
.uk-hero-app-menu-item.active { background: #1e3a8a; }
.uk-hero-app-content {
display: inline-block;
padding: 1rem;
width: calc(100% - 70px);
box-sizing: border-box;
vertical-align: top;
}
.uk-hero-app-chart {
display: flex;
align-items: flex-end;
gap: 6px;
height: 100px;
padding: 0 0.25rem;
margin-bottom: 1rem;
}
.uk-hero-app-chart > div {
flex: 1;
background: #dbeafe;
border-radius: 4px 4px 0 0;
}
.uk-hero-app-chart > div:nth-child(4) { background: #1e3a8a; }
.uk-hero-app-stats { display: flex; gap: 8px; }
.uk-hero-app-stat {
flex: 1;
height: 40px;
background: #f1f5f9;
border-radius: 6px;
}
</style>
Animated Gradient Hero
<div class="uk-hero-gradient">
<div class="uk-hero-gradient-bg"></div>
<div class="uk-hero-gradient-content">
<h1 class="uk-hero-gradient-title">Everything you need</h1>
<p class="uk-hero-gradient-desc">Free UI components.</p>
<div class="uk-hero-gradient-actions">
<button class="uk-hero-gradient-btn">Get Started</button>
</div>
<div class="uk-hero-gradient-stats">
<div><strong>2.5M+</strong><span>Downloads</span></div>
</div>
</div>
</div>
<style>
.uk-hero-gradient {
position: relative;
padding: 5rem 2rem;
text-align: center;
overflow: hidden;
color: #fff;
}
.uk-hero-gradient-bg {
position: absolute;
inset: 0;
background: linear-gradient(135deg, #1e3a8a, #6366f1, #a855f7, #ec4899);
background-size: 400% 400%;
animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.uk-hero-gradient-content {
position: relative;
max-width: 680px;
margin: 0 auto;
}
.uk-hero-gradient-title {
font-size: 3rem;
font-weight: 900;
line-height: 1.05;
letter-spacing: -0.04em;
margin-bottom: 1.25rem;
}
.uk-hero-gradient-desc {
font-size: 1.05rem;
opacity: 0.9;
margin-bottom: 2rem;
}
.uk-hero-gradient-actions {
display: flex;
gap: 0.75rem;
justify-content: center;
margin-bottom: 3rem;
flex-wrap: wrap;
}
.uk-hero-gradient-btn {
padding: 0.8rem 1.75rem;
background: #fff;
color: #1e3a8a;
border: 0;
border-radius: 0.5rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
}
.uk-hero-gradient-btn-ghost {
padding: 0.8rem 1.75rem;
background: transparent;
color: #fff;
border: 1.5px solid rgba(255,255,255,0.5);
border-radius: 0.5rem;
font-weight: 700;
font-size: 0.9rem;
cursor: pointer;
}
.uk-hero-gradient-stats {
display: flex;
justify-content: center;
gap: 3rem;
flex-wrap: wrap;
}
.uk-hero-gradient-stats div {
display: flex;
flex-direction: column;
align-items: center;
}
.uk-hero-gradient-stats strong {
font-size: 1.5rem;
font-weight: 800;
}
.uk-hero-gradient-stats span {
font-size: 0.75rem;
opacity: 0.8;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-top: 4px;
}
</style>
Split Image Hero
<div class="uk-hero-split">
<div class="uk-hero-split-text">
<div class="uk-hero-split-pill">Available Now</div>
<h1 class="uk-hero-split-title">The design system you've been waiting for</h1>
<p class="uk-hero-split-desc">Hundreds of components.</p>
<form class="uk-hero-split-form">
<input type="email" placeholder="Enter your email" required>
<button type="submit">Get Early Access</button>
</form>
<div class="uk-hero-split-social">
<div class="uk-hero-split-avatars">...</div>
<div class="uk-hero-split-social-text">Join 12,000+ early users</div>
</div>
</div>
<div class="uk-hero-split-image">
<img src="..." alt="">
</div>
</div>
<style>
.uk-hero-split {
display: grid;
grid-template-columns: 1.2fr 1fr;
min-height: 480px;
background: #fff;
}
@media (max-width: 768px) {
.uk-hero-split { grid-template-columns: 1fr; }
.uk-hero-split-image { height: 260px; }
}
.uk-hero-split-text {
padding: 3rem;
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
}
.uk-hero-split-pill {
display: inline-block;
align-self: flex-start;
padding: 5px 14px;
background: #eef2f8;
color: #1e3a8a;
border-radius: 999px;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 1.25rem;
}
.uk-hero-split-title {
font-size: 2.25rem;
font-weight: 800;
line-height: 1.15;
letter-spacing: -0.03em;
color: #0b1b2f;
margin-bottom: 1rem;
}
.uk-hero-split-desc {
font-size: 0.95rem;
color: #64748b;
line-height: 1.6;
margin-bottom: 1.75rem;
}
.uk-hero-split-form {
display: flex;
gap: 0.5rem;
padding: 0.35rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 999px;
margin-bottom: 1.5rem;
}
.uk-hero-split-form input {
flex: 1;
border: 0;
outline: 0;
background: transparent;
padding: 0.6rem 1rem;
font-size: 0.88rem;
border-radius: 999px;
}
.uk-hero-split-form button {
padding: 0.6rem 1.25rem;
background: #1e3a8a;
color: #fff;
border: 0;
border-radius: 999px;
font-weight: 700;
font-size: 0.82rem;
cursor: pointer;
}
.uk-hero-split-social {
display: flex;
align-items: center;
gap: 0.75rem;
}
.uk-hero-split-avatars {
display: flex;
}
.uk-hero-split-avatars img {
width: 28px; height: 28px;
border-radius: 50%;
border: 2px solid #fff;
margin-left: -8px;
object-fit: cover;
}
.uk-hero-split-avatars img:first-child { margin-left: 0; }
.uk-hero-split-social-text {
font-size: 0.78rem;
color: #64748b;
font-weight: 600;
}
.uk-hero-split-image {
position: relative;
overflow: hidden;
}
.uk-hero-split-image img {
width: 100%; height: 100%;
object-fit: cover;
}
</style>
Minimal Text Hero
<div class="uk-hero-min">
<div class="uk-hero-min-eyebrow">◆ WebNexa Tools</div>
<h1 class="uk-hero-min-title">Tools for people who build.</h1>
<p class="uk-hero-min-desc">Free, open-source, and beautifully crafted.</p>
<div class="uk-hero-min-links">
<a href="#">Browse Tools →</a>
<a href="#">View on GitHub →</a>
</div>
</div>
<style>
.uk-hero-min {
padding: 5rem 2rem;
text-align: center;
background: #fff;
}
.uk-hero-min-eyebrow {
font-size: 0.75rem;
font-weight: 700;
color: #1e3a8a;
letter-spacing: 0.08em;
margin-bottom: 1.5rem;
}
.uk-hero-min-title {
font-size: 3rem;
font-weight: 900;
line-height: 1.05;
letter-spacing: -0.04em;
color: #0b1b2f;
max-width: 700px;
margin: 0 auto 1.25rem;
}
.uk-hero-min-desc {
font-size: 1.05rem;
color: #64748b;
max-width: 500px;
margin: 0 auto 2rem;
line-height: 1.6;
}
.uk-hero-min-links {
display: flex;
gap: 1.5rem;
justify-content: center;
flex-wrap: wrap;
}
.uk-hero-min-links a {
font-size: 0.88rem;
font-weight: 700;
color: #1e3a8a;
text-decoration: none;
transition: gap 0.15s;
display: inline-flex;
align-items: center;
gap: 4px;
}
.uk-hero-min-links a:hover { gap: 8px; }
</style>