ToolypetMCP
beginner4 minutescss

Hero Section Design

Design a stunning hero section with gradient background, flexbox centering, and entrance animation.

herogradientflexboxanimation

Wann dieses Rezept verwenden

Perfect for landing pages, marketing sites, and portfolio homepages. A well-designed hero section captures attention immediately and sets the tone for the rest of the page.

Schritte

1

Create an immersive background gradient

Eingabeaufforderung:Generate a radial gradient from dark blue (#1e3a5f) to black (#0a0a0a) for a hero background
2

Center the hero content

Eingabeaufforderung:Generate flexbox CSS to center content both horizontally and vertically in a column direction
3

Add entrance animation

Eingabeaufforderung:Generate a fade-in-up animation: opacity 0 to 1 and translateY 20px to 0 over 600ms ease-out

Häufig gestellte Fragen

How do I add a background image over the gradient?

Layer a background-image with the gradient using CSS multiple backgrounds: background: linear-gradient(...), url('image.jpg').

What's the ideal hero section height?

Most hero sections use min-height: 100vh for full-screen impact, or min-height: 60vh for a more compact design.

Verwandte Rezepte