Tailwind Hero Sections: 10 Variants for Strong Landing Pages
AI generated
</>
tw
Tailwind CSS · Hero Sections · Landing Page Design
Tailwind Hero Sections:
10 Variants for Strong Landing Pages

The hero section decides in the first three seconds whether a visitor stays or leaves. This article shows ten concrete Tailwind CSS hero variants, from simple gradients to video backgrounds and glassmorphism, with complete code and design rationale.

18 min read Gradient · Split · Video · Glassmorphism · Dot Pattern · Noise Texture Tailwind CSS v4 · Alpine.js · Hyva Themes

1. Why hero sections decide conversions

The Tailwind hero section is the first element visitors see, and therefore the most important investment in the UI of a landing page or homepage. Studies show that users decide within the first three to five seconds whether to stay on a page. During that time, the hero area has to answer three questions: What does this page offer? Who is it for? Why act now? Only once these questions are answered visually and textually does it make sense to invest in more complex page sections.

With Tailwind CSS, all the essential hero section variants can be described entirely in markup, without touching a CSS file. That simplifies iteration: a different gradient, a different text size, an extra badge, changes are implemented in seconds and visible instantly through hot reload. The ten variants in this article cover a broad range of use cases, from the minimal SaaS pitch to the emotional product presentation.

2. Variants 1-2: Gradient hero and dark gradient

The gradient hero is the most versatile variant. It works without external images, is fully describable in Tailwind and adapts to every screen size. The key lies in choosing the gradient direction and color palette. A diagonal gradient (bg-gradient-to-br) feels more dynamic than a horizontal one. The color palette should match the brand and ensure sufficient contrast for white text. With from-sky-900 via-sky-700 to-sky-500 you get a blue gradient that feels technical and trustworthy.

The dark gradient hero uses dark tones (from-slate-950 via-slate-800 to-slate-700) and is especially effective for SaaS products, developer tools and agency websites. Light text on a dark background creates high contrast and makes colored accents (badges, CTA buttons) stand out more. Decorative elements such as dot patterns, subtle grid lines or semi-transparent blur blobs strengthen the sense of depth without distracting. All of this can be built with Tailwind classes plus minimal inline CSS for the more complex gradients.


<!-- Variant 1: Blue Gradient Hero -->
<section class="relative overflow-hidden bg-gradient-to-br from-sky-900 via-sky-700 to-sky-500 py-24 px-6 sm:px-12 text-white">
  <!-- Subtle dot overlay for texture -->
  <div class="absolute inset-0 opacity-10"
    style="background-image: radial-gradient(circle, white 1px, transparent 1px); background-size: 28px 28px;"></div>
  <div class="relative max-w-4xl mx-auto text-center">
    <span class="inline-flex items-center gap-2 bg-white/15 border border-white/30 rounded-full px-4 py-1.5 text-sm font-medium mb-6">
      New in v4.1, available now
    </span>
    <h1 class="text-4xl sm:text-5xl lg:text-6xl font-extrabold leading-tight mb-6">
      Better interfaces,<br>built faster
    </h1>
    <p class="text-lg sm:text-xl text-sky-100 max-w-2xl mx-auto mb-10">
      With Tailwind CSS v4 and Hyva Themes we build Magento frontends that load fast, are easy to maintain and drive conversions.
    </p>
    <div class="flex flex-col sm:flex-row gap-4 justify-center">
      <a href="/contact" class="bg-white text-sky-900 font-bold px-8 py-3.5 rounded-xl hover:bg-sky-50 transition-colors shadow-lg">
        Start a project
      </a>
      <a href="/referenzen" class="border border-white/50 text-white font-semibold px-8 py-3.5 rounded-xl hover:bg-white/10 transition-colors">
        View case studies
      </a>
    </div>
  </div>
</section>

<!-- Variant 2: Dark Gradient Hero with blur blob decoration -->
<section class="relative overflow-hidden min-h-[80vh] flex items-center"
  style="background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);">
  <!-- Decorative blur blob, top right -->
  <div class="absolute -top-32 -right-32 w-96 h-96 rounded-full opacity-20 blur-3xl"
    style="background: radial-gradient(circle, #0ea5e9, transparent);"></div>
  <!-- Decorative blur blob, bottom left -->
  <div class="absolute -bottom-24 -left-24 w-72 h-72 rounded-full opacity-15 blur-3xl"
    style="background: radial-gradient(circle, #6366f1, transparent);"></div>

  <div class="relative max-w-5xl mx-auto px-6 sm:px-12 py-20 text-white text-center">
    <p class="text-sky-400 font-semibold text-sm uppercase tracking-widest mb-4">Magento · Hyva · Tailwind CSS</p>
    <h1 class="text-5xl sm:text-6xl lg:text-7xl font-black leading-none mb-6">
      Frontends that<br>
      <span class="text-transparent bg-clip-text bg-gradient-to-r from-sky-400 to-violet-400">
        actually perform
      </span>
    </h1>
    <p class="text-slate-300 text-lg max-w-xl mx-auto mb-10">
      No Luma legacy baggage, no jQuery, no KnockoutJS. Just fast, modern HTML with Alpine.js and Tailwind.
    </p>
    <a href="/contact" class="inline-flex items-center gap-2 bg-sky-500 hover:bg-sky-400 text-white font-bold px-8 py-4 rounded-2xl transition-colors shadow-xl shadow-sky-500/25">
      Get in touch
      <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
      </svg>
    </a>
  </div>
</section>

3. Variant 3: Image background with overlay

The image background hero is especially suited to emotional products, travel websites, restaurants and any industry where atmospheric photography plays a role. The technical foundation in Tailwind: the section element gets relative, the background image is inserted as an absolutely positioned img element with object-cover and w-full h-full, and an overlay div with a semi-transparent gradient sits on top. That way the image stays a regular image tag (important for performance and Core Web Vitals, since fetchpriority="high" and loading="eager" can be set) rather than a CSS background.

The gradient overlay darkens the image from bottom to top: from-black/80 via-black/40 to-transparent. That creates readable text over the image without fully obscuring it. For Tailwind hero sections with an image background, the following applies: the contrast between text and background must meet WCAG AA (at least 4.5:1 for normal text). An overly bright image with white text will fail. The overlay opacity must be chosen so that readable results emerge across different image motifs (light, dark, colorful).

4. Variant 4: Split layout (text left, image right)

The split layout is one of the most effective hero section patterns for product websites and SaaS landing pages. The left side holds all the textual arguments, headline, subline, CTA buttons and trust signals such as customer quotes or logos. The right side shows the product, a screenshot, an illustration or an atmospheric image. On mobile devices the layout stacks: text first, then image.

In Tailwind, the split layout is built with a grid: grid grid-cols-1 lg:grid-cols-2. The text area uses flex flex-col justify-center to center the content vertically. The image element gets aspect-square or aspect-video with object-cover and rounded styling (rounded-2xl). For the typical hero look, the whole container gets a dark or colored background and the text is set in white. The image gets a subtle box shadow to visually lift it off the background.


<!-- Variant 4: Split Layout Hero -->
<section class="bg-slate-900 text-white overflow-hidden">
  <div class="max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 items-center min-h-[80vh]">

    <!-- Left: text content -->
    <div class="px-6 sm:px-12 py-16 lg:py-20 flex flex-col justify-center">
      <span class="inline-flex items-center gap-2 bg-sky-500/15 border border-sky-500/30 text-sky-400 rounded-full px-4 py-1.5 text-sm font-semibold mb-6 w-fit">
        Hyva Certified Partner
      </span>
      <h1 class="text-4xl sm:text-5xl font-extrabold leading-tight mb-5">
        Magento stores<br>
        that are <span class="text-sky-400">fast</span>
      </h1>
      <p class="text-slate-300 text-lg mb-8 max-w-lg">
        We replace slow Luma frontends with Hyva Themes running on Tailwind CSS v4 and Alpine.js, Lighthouse 95+ guaranteed.
      </p>
      <!-- Trust signals -->
      <div class="flex flex-wrap gap-3 mb-8 text-sm">
        <span class="flex items-center gap-1.5 text-slate-400">
          <svg class="w-4 h-4 text-emerald-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg>
          Lighthouse 95+
        </span>
        <span class="flex items-center gap-1.5 text-slate-400">
          <svg class="w-4 h-4 text-emerald-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg>
          No jQuery, no KO.js
        </span>
        <span class="flex items-center gap-1.5 text-slate-400">
          <svg class="w-4 h-4 text-emerald-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg>
          GDPR compliant
        </span>
      </div>
      <div class="flex flex-col sm:flex-row gap-3">
        <a href="/contact" class="bg-sky-500 hover:bg-sky-400 text-white font-bold px-7 py-3.5 rounded-xl transition-colors text-center">
          Free consultation
        </a>
        <a href="/referenzen" class="border border-slate-600 hover:border-slate-400 text-slate-300 font-semibold px-7 py-3.5 rounded-xl transition-colors text-center">
          Case studies
        </a>
      </div>
    </div>

    <!-- Right: product/app screenshot -->
    <div class="relative hidden lg:flex items-center justify-center p-8 lg:p-12">
      <div class="relative w-full max-w-lg">
        <!-- Browser frame mockup -->
        <div class="bg-slate-800 rounded-2xl shadow-2xl border border-slate-700 overflow-hidden">
          <div class="bg-slate-700 px-4 py-3 flex items-center gap-2">
            <span class="w-3 h-3 rounded-full bg-red-400"></span>
            <span class="w-3 h-3 rounded-full bg-yellow-400"></span>
            <span class="w-3 h-3 rounded-full bg-green-400"></span>
            <div class="flex-1 bg-slate-600 rounded-md h-5 ml-2 flex items-center px-3">
              <span class="text-slate-400 text-xs">mironsoft.de</span>
            </div>
          </div>
          <div class="bg-gradient-to-br from-sky-900 to-slate-900 aspect-video flex items-center justify-center">
            <p class="text-white/40 text-sm">Store preview here</p>
          </div>
        </div>
        <!-- Floating badge -->
        <div class="absolute -bottom-4 -left-4 bg-white rounded-xl shadow-xl p-3 flex items-center gap-2">
          <div class="w-8 h-8 rounded-lg bg-emerald-100 flex items-center justify-center">
            <svg class="w-4 h-4 text-emerald-600" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z" clip-rule="evenodd"/></svg>
          </div>
          <div>
            <p class="text-xs font-bold text-slate-800">+38% faster</p>
            <p class="text-xs text-slate-500">vs. Luma theme</p>
          </div>
        </div>
      </div>
    </div>

  </div>
</section>

5. Variant 5: Video background hero

The video background creates the strongest emotional impact and suits industries where atmospheric communication is decisive: hospitality, travel, real estate, event businesses. The technical implementation in Tailwind hero sections follows the same principle as the image hero: the video element sits absolutely positioned behind the content. Important: autoplay muted loop playsinline are mandatory attributes. Without muted, browsers block autoplay; without playsinline, iOS devices open the video in fullscreen mode instead of showing it as a background.

A performance note for Tailwind hero video backgrounds: provide the video in webm format for modern browsers with mp4 as a fallback. File size should not exceed 5 MB, and ideally stay under 2 MB. A poster image (poster="...") ensures that users whose video is still loading or not supported see a static image instead. With preload="none" or preload="metadata", you can delay loading the video until the rest of the page is done loading, important for Core Web Vitals and LCP optimization.

6. Variant 6: Glassmorphism hero

Glassmorphism heroes create a modern, high-end look through the interplay of a dark or colorful background, blurred decorative elements and a content container with backdrop-blur. In Tailwind you write the glass effect as bg-white/10 backdrop-blur-xl border border-white/20 on the content container. Behind it sit several colored, blurred blob elements as absolute decorations.

The glassmorphism hero fits excellently for fintech, crypto, tech startups and any context that wants a futuristic and exclusive impression. The challenge: too much glassmorphism makes a page feel cluttered and hard to read. The rule for Tailwind hero sections with glassmorphism: only one or two glass elements per hero, strong contrast on text elements, and the glass effect element must clearly read as a container, not as a background.

7. Variants 7-8: Dot pattern and grid pattern

Dot pattern and grid pattern are decorative background textures that need no external images and give a hero section depth without cluttering it. The dot pattern is produced with a radial gradient as a CSS background image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) at background-size: 32px 32px. That yields an even grid of fine dots, as seen in this article's hero. The grid pattern works similarly but uses linear gradients to create horizontal and vertical lines.

Both pattern variants can be built in Tailwind via inline styles on an absolutely positioned div above the main background. For production Tailwind projects it is worth storing the pattern definitions as CSS custom properties in @layer base and then using them as classes (bg-dot-pattern, bg-grid-pattern). That keeps the HTML clean and the patterns consistent across all hero sections of a project.


/* Custom pattern utilities in Tailwind v4 CSS-first config */
@layer utilities {
  /* Dot pattern: subtle white dots on dark backgrounds */
  .bg-dot-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 32px 32px;
  }

  /* Grid pattern: subtle lines for technical/developer contexts */
  .bg-grid-pattern {
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  /* Noise texture: subtle film grain for warmth */
  .bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  }
}

8. Variant 9: Animated gradient with CSS animation

An animated gradient background instantly draws attention and conveys energy. The technical challenge: CSS gradients cannot be animated directly, because background-image is not interpolatable. The proven workaround pattern: define two overlapping gradient layers as pseudo elements or absolute child elements and animate opacity instead. Alternatively, use background-position on an oversized gradient to simulate movement.

In Tailwind v4, the keyframe animation can be defined directly in the CSS-first configuration: @keyframes gradient-shift with alternating background-position values. The animation is applied to the element with animate-[gradient-shift_8s_linear_infinite]. For Tailwind hero sections, the rule is: animations should be subtle and respect the prefers-reduced-motion media preference. In Tailwind that is written as motion-reduce:animate-none on the animated element.

9. Variant 10: CTA-focus hero with centered call to action

The CTA-focus hero forgoes visual effort and puts everything on the call to action. This variant suits products with a clear unique selling point that can be communicated in a single short sentence: newsletter signups, app downloads, waitlist entries. The layout is simple: centered text on a neutral or very subtly tinted background, below it a prominent CTA button and optionally an input field for email or another primary value.

The trick for a high conversion rate on Tailwind CTA hero sections: the primary button visually dominates and has no competing distraction. The headline states a concrete benefit, not a generic slogan. Trust signals (number of users, customer reviews, logos of known clients) appear close to the CTA, not further down the page. With Tailwind, this structure can be built in fewer than 30 classes, no layout overhead, maximum readability in the code.


<!-- Variant 10: CTA-Focus Hero, maximum conversion focus -->
<section class="relative overflow-hidden bg-white py-24 sm:py-32">
  <!-- Very subtle background texture -->
  <div class="absolute inset-0 opacity-40"
    style="background-image: radial-gradient(circle at 1px 1px, #cbd5e1 1px, transparent 0); background-size: 40px 40px;"></div>

  <div class="relative max-w-3xl mx-auto px-6 text-center">
    <!-- Social proof badge -->
    <div class="inline-flex items-center gap-2 bg-slate-100 border border-slate-200 rounded-full px-4 py-2 text-sm text-slate-600 font-medium mb-8">
      <div class="flex -space-x-1.5">
        <div class="w-6 h-6 rounded-full bg-sky-500 border-2 border-white"></div>
        <div class="w-6 h-6 rounded-full bg-violet-500 border-2 border-white"></div>
        <div class="w-6 h-6 rounded-full bg-emerald-500 border-2 border-white"></div>
      </div>
      <span>Over 2,400 stores already optimized</span>
    </div>

    <h1 class="text-5xl sm:text-6xl font-extrabold text-slate-900 leading-tight mb-5">
      Your Magento store.<br>
      <span class="text-sky-600">Finally fast.</span>
    </h1>

    <p class="text-xl text-slate-600 mb-10 max-w-xl mx-auto">
      We migrate your Luma frontend to Hyva + Tailwind CSS v4 in 4 to 8 weeks. Measurably faster, better conversions.
    </p>

    <!-- Primary CTA with email input -->
    <form class="flex flex-col sm:flex-row gap-3 max-w-lg mx-auto mb-6" action="/anfrage" method="post">
      <input type="email" name="email" required placeholder="your@email.com"
        class="flex-1 border border-slate-300 rounded-xl px-4 py-3.5 text-sm focus:outline-none focus:border-sky-500 focus:ring-2 focus:ring-sky-100">
      <button type="submit"
        class="bg-sky-600 hover:bg-sky-500 text-white font-bold px-6 py-3.5 rounded-xl transition-colors whitespace-nowrap shadow-lg shadow-sky-500/25">
        Free audit
      </button>
    </form>

    <!-- Micro trust signals below CTA -->
    <p class="text-xs text-slate-400 flex items-center justify-center gap-4 flex-wrap">
      <span class="flex items-center gap-1">
        <svg class="w-3.5 h-3.5 text-emerald-500" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z" clip-rule="evenodd"/></svg>
        No credit card required
      </span>
      <span class="flex items-center gap-1">
        <svg class="w-3.5 h-3.5 text-emerald-500" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg>
        Reply within 24 hours
      </span>
      <span class="flex items-center gap-1">
        <svg class="w-3.5 h-3.5 text-emerald-500" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg>
        Hyva Certified Partner
      </span>
    </p>
  </div>
</section>

10. Hero variants compared

Not every Tailwind hero section variant fits every project. The choice depends on industry, target audience, product type and the primary conversion goal.

Variant Best suited for Technical requirement Performance risk
Gradient hero SaaS, dev tools, agencies CSS only, no image No risk
Image background Hospitality, travel, lifestyle Optimized image, overlay LCP-critical
Split layout Product websites, software Grid, optional mockup Low
Video background Events, real estate, luxury Compressed webm+mp4 High LCP risk
CTA-focus hero Newsletter, app, waitlist Minimal, HTML/CSS only No risk

For Magento Hyva projects with Tailwind CSS, gradient heroes and split layouts are the most practical options: they carry no LCP risk, can be fully expressed in the phtml template and need no external resources. The CTA-focus hero is the best choice for dedicated landing pages with a single conversion goal.

Mironsoft

Hero Sections · Landing Pages · Hyva Themes

Need a custom hero section for your store?

We build the right hero variant for your product, with Tailwind CSS v4, Hyva-compliant and optimized for Core Web Vitals.

Design sprint

3 hero variants in 48h, ready to choose from with a live preview

Implementation

As a Hyva phtml template with Alpine.js interactions

Performance check

LCP optimization, Lighthouse audit and Core Web Vitals

Summary

The ten Tailwind hero section variants in this article cover the full spectrum of modern landing page design. Gradient heroes are the most universal choice: no performance risk, fully describable in Tailwind, easy to adapt. Split layouts win over product websites where a screenshot or an image instantly communicates the value proposition. CTA-focus heroes maximize conversion through freedom from distraction. Video and glassmorphism heroes set emotional accents but require careful performance consideration.

In Magento Hyva projects, all variants can be implemented as .phtml templates. The combination of Tailwind CSS v4 (CSS-first configuration, arbitrary utility values) and Alpine.js (for minimal interactivity) produces hero sections that load fast, are easy to maintain and adapt to every screen size. The dot pattern and the decorative blob elements are created without external images or JavaScript, purely from CSS gradients.

Tailwind Hero Sections: The Essentials at a Glance

Performance priority

Gradient hero and CTA-focus: no LCP risk. Image hero: fetchpriority="high" on the img. Video hero: preload="none", poster image mandatory.

Dot pattern without an image

radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) at background-size: 32px 32px. No external asset needed.

Split layout tip

grid-cols-1 lg:grid-cols-2, stacked on mobile, side by side on desktop. Browser mockup as an image substitute for screenshots when there is no real product asset.

Reduced motion

Always add motion-reduce:animate-none on animated elements. Users with motion sensitivity are not burdened.

11. FAQ: Tailwind Hero Sections

1Which hero variant has the best LCP result?
Gradient hero and CTA-focus: no LCP risk (CSS only). Image hero: fetchpriority="high" mandatory. Video hero: highest risk, preload="none" plus poster image.
2Dot pattern in Tailwind without an external image?
radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) at background-size: 32px 32px as an inline style. No SVG, no PNG.
3Implementing a glassmorphism hero in Tailwind?
Content container: bg-white/10 backdrop-blur-xl border border-white/20. Backdrop-blur needs a transparent background, otherwise there is no visible effect.
4Video background: why autoplay muted playsinline?
Without muted, browsers block autoplay. Without playsinline, iOS devices open fullscreen. All three attributes are mandatory for cross-browser behavior.
5Accessible text over an image background?
WCAG AA: min. 4.5:1 contrast. A dark gradient overlay (from-black/80 via-black/40) keeps text readable across varying image motifs.
6Animating a gradient in Tailwind?
Direct gradient animation is not possible. Animate background-position on an oversized gradient (background-size: 200%) or alternate opacity between two gradient layers.
7Best hero for Magento Hyva Themes?
Gradient hero and split layout: no external assets, buildable as a phtml template, add Alpine.js for minimal interactivity.
8Prioritizing the LCP image in an image hero?
img tag with fetchpriority="high" loading="eager". No lazy loading on the LCP image. WebP/AVIF format, sized for the viewport.
9Reduced motion for animated heroes?
motion-reduce:animate-none on animated elements. Responds to the OS "reduce motion" setting, important for accessibility.
10Building trust signals into a hero section?
Close to the CTA: avatar stack, rating stars, logos, certifications, as a flex row with gap in text-xs. Directly below the primary CTA, not in a separate section.