Hero 02
An art-directed editorial hero combining expressive typography, layered imagery and asymmetric composition.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About Hero 02
Hero 02 is a hero section in the Hero Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 15, 2026.
- hero
- editorial
- design library
- creative
- typography
- landing page
- portfolio
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: aria-label, aria-expanded, aria-controls.
- HTML elements used: nav, section, button, img, svg.
- Keyboard keys handled: Escape.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 768px, 1024px.
- The demo imagery is loaded from Unsplash.
React + TypeScript + Tailwind CSS
3 files: Hero02.jsx, Hero02.types.ts, Hero02.tailwind.css
- Configurable through 4 props: id, text, size, className.
- Uses React hooks: useEffect, useState.
- ARIA in the markup: aria-label, aria-expanded, aria-controls.
- HTML elements used: nav, section, button, img, svg.
- Keyboard keys handled: Escape.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, md, lg.
- The demo imagery is loaded from Unsplash.