htmlintermediatemit

Gradient Hero

A hero with an animated gradient background.

2.6k3.3k417287

About this module

A full-bleed hero whose background flows between vivid gradients — high-impact for product launches.

#hero#gradient#animated

Source code

Installation

  1. 1

    Create the files

    Create `index.html` and `style.css` in the same folder.

  2. 2

    Paste the code

    Copy each file's source into its matching file.

  3. 3

    Open in the browser

    Open `index.html` in any modern browser.

Usage

  1. 1

    Copy the HTML

    Paste the section markup where you need it.

    <link rel="stylesheet" href="style.css" />
    <section class="mh-sec mh-grad-hero">
      <div class="mh-container mh-center">
        <h1 class="mh-h1">Build something<br/>extraordinary</h1>
        <p class="mh-sub">A developer platform with modules, previews and copy-paste code.</p>
        <a href="#" class="mh-btn">Get started free</a>
      </div>
    </section>
Overview
Categorysections
Frameworkhtml
Difficultyintermediate
Licensemit
Versionv1.0.0
Features
  • Fully responsive
  • Semantic markup
  • No dependencies
Traits
  • ResponsiveYes
  • Dark modeYes
  • AccessibleYes
  • Production readyYes
Browser support
  • Chrome 90+
  • Firefox 90+
  • Safari 15+
  • Edge 90+

Related modules

Command Palette

Search modules and jump anywhere