Skip to content

Split Reveal Hero

A copy-paste hero sections component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Hero SectionsHTMLCSSany framework

Riseandreveal.

Copy into your project

HTML
<!-- Split Reveal Hero — each line's word rises out of a clipped mask.
     The outer line clips; the inner span animates from translateY(105%). -->
<h1 class="nuda-srevealh">
  <span class="nuda-srevealh__line"><span style="--d: 0s">Rise</span></span>
  <span class="nuda-srevealh__line"><span style="--d: .12s">and</span></span>
  <span class="nuda-srevealh__line"><span style="--d: .24s" class="is-accent">reveal.</span></span>
</h1>
CSS
/* Split Reveal Hero
   Headline words rise out of clipped lines on load, staggered via --d.
   Customize: --srevealh-accent, font sizing, stagger. */

.nuda-srevealh {
  --srevealh-accent: #e4ff54;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 800 clamp(2.5rem, 7vw, 5rem) ui-sans-serif, system-ui, sans-serif;
  color: #fafafa;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding: 60px 24px;
  text-align: center;
}

.nuda-srevealh__line {
  display: block;
  overflow: hidden;
}

.nuda-srevealh__line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: nuda-srevealh-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) forwards;
}

.nuda-srevealh .is-accent {
  background: linear-gradient(180deg, var(--srevealh-accent), #a8c93a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes nuda-srevealh-rise {
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-srevealh__line > span { animation: none; transform: none; }
}

How to use Split Reveal Hero

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More hero sections components

← Browse all NudaUI components