Skip to content

Split Hero with App Screenshot

Dark Tailwind CSS split hero with gradient headline, two CTA buttons and an animated mock app dashboard built entirely from divs.

Also known as: saas hero section, landing page hero with screenshot, hero with dashboard mockup, split screen hero

Tailwind CSS Hero Sections Responsive Dark #dark #dashboard #hero #landing-page #saas

Split Hero with App Screenshot live demo

Open in new tab

Tailwind CSS code (HTML, CSS)

A dark split hero section built with Tailwind CSS: headline, supporting copy and two call-to-action buttons on the left, and a mock app screenshot drawn entirely with div elements on the right. It is made for SaaS landing pages, product launches and analytics or dashboard tools that want a product preview without exporting real screenshots.

How it works

The root is section.ths-hero, a bg-slate-950 block with two blurred color glows and a faint CSS grid pattern drawn by an arbitrary bg-[linear-gradient(...)] utility. The content grid stacks on mobile and becomes two columns at lg with lg:grid-cols-[1fr_1.1fr], giving the screenshot slightly more room than the copy.

The left column has an announcement pill, an h1 with a gradient phrase (bg-linear-to-r plus bg-clip-text text-transparent), a paragraph, a primary "Start free trial" button, a secondary demo button and a row of initial avatars for social proof. Text is centered on small screens and left-aligned from lg up.

The right column is .ths-shot: a fake browser window with traffic-light dots, an address bar, a sidebar (hidden below sm), three stat tiles, a bar chart and two list rows. Each bar is a .ths-bar whose height is set with utilities like h-[72%]. style.css animates the bars with the ths-grow keyframes, staggered by the --ths-delay custom property, and tilts the window in 3D on large screens using --ths-tilt-x and --ths-tilt-y; hovering flattens it. A .ths-float stat card overlaps the bottom corner and drifts gently. No JavaScript is needed.

Customization

  • --ths-tilt-x and --ths-tilt-y on .ths-hero in style.css: set both to 0deg for a flat screenshot or increase them for a stronger perspective.
  • h-[38%] … h-[88%] on each .ths-bar: change the chart shape; the highlighted bar uses from-violet-500 to-fuchsia-400.
  • [--ths-delay:80ms] on each bar: adjust the stagger of the grow-in animation.
  • from-violet-400 via-fuchsia-300 to-cyan-300 on the headline span: pick new gradient stops to rebrand the hero.
  • bg-violet-600/30 and bg-cyan-500/20 on the two glow divs: change or remove the background lighting.
  • Replace the whole .ths-shot block with an img from https://placehold.co/1200x800 or your real screenshot once you have one.
  • lg:grid-cols-[1fr_1.1fr]: use lg:grid-cols-2 for equal columns.

Use cases

  • SaaS landing pages: headline and two call-to-action buttons sit beside a product preview
  • Product launches: a mock app window shows the product without exporting real screenshots
  • Analytics and dashboard tools: animated bars and stat tiles hint at what the app does
  • Social proof: a row of avatars under the buttons suggests an existing user base

Accessibility

The section is labelled by #ths-title, the only h1. The mock screenshot has role="img" with a descriptive aria-label, so screen readers hear one summary instead of dozens of empty boxes, and the decorative glows, avatars and floating card are aria-hidden. Both buttons and the announcement pill are links with a visible cyan focus-visible:outline-2 ring. Body text uses text-slate-300 on near-black for strong contrast. With prefers-reduced-motion: reduce, the bar animation, the floating card and the tilt transition are switched off.

Usage notes

Requires only the Tailwind browser build plus style.css. Point the two CTA links at your sign-up page and demo video. The bg-linear-to-r gradient utilities are Tailwind v4 syntax; in v3 use bg-gradient-to-r.

Split Hero with App Screenshot at a glance

Framework
Tailwind CSS
Code
HTML, CSS
JavaScript
Only Tailwind CSS's own script
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile, dark design
Category
Hero Sections
License
Free for personal and commercial use

Questions about this template

Can I use the Split Hero with App Screenshot code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Tailwind CSS's own JavaScript is used, and the download already includes it.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Split Hero with App Screenshot – free Tailwind CSS hero section template
Split Hero with App Screenshot · free Tailwind CSS hero section template

More Hero Sections

Split Hero with Diagonal Photo Clip – free Pure CSS hero section template

Split Hero with Diagonal Photo Clip

Pure CSS split hero with headline, buttons and stats beside a full-height photo cut on a diagonal with clip-path, plus an accent stripe and rating badge.

Hero with Rotating Words – free Pure CSS hero section template

Hero with Rotating Words

Dark hero section whose headline cycles through words with a slide-and-fade animation, a pause button and decorative stat cards.

Hero with Background Video Overlay – free Bootstrap 6 hero section template

Hero with Background Video Overlay

Full-width Bootstrap 6 hero with a muted background video or slow-zoom poster photo, dark gradient overlay, headline, two buttons, stats and a pause control.

Dark Gradient Hero – free Bootstrap 6 hero section template

Dark Gradient Hero

Dark Bootstrap 6 hero with a blurred gradient mesh, gradient headline, glowing CTA, copyable install command, decorative orb with stats and a row of trust logos.

Split Hero with Stats – free Bootstrap 6 hero section template

Split Hero with Stats

Bootstrap 6 split hero with a highlighted headline, CTAs and avatar social proof beside a bento grid of key stats with a 12-month / all-time toggle.

Hero with Search Bar – free Bootstrap 6 hero section template

Hero with Search Bar

Bootstrap 6 directory hero on a photo background with a large pill search bar, a searchable area Combobox, popular search chips and category tiles.