ToolypetMCP
beginner4 minutescss

Hero Section Design

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

herogradientflexboxanimation

इस रेसिपी का उपयोग कब करें

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.

चरण

1

Create an immersive background gradient

प्रॉम्प्ट:Generate a radial gradient from dark blue (#1e3a5f) to black (#0a0a0a) for a hero background
2

Center the hero content

प्रॉम्प्ट:Generate flexbox CSS to center content both horizontally and vertically in a column direction
3

Add entrance animation

प्रॉम्प्ट:Generate a fade-in-up animation: opacity 0 to 1 and translateY 20px to 0 over 600ms ease-out

अक्सर पूछे जाने वाले प्रश्न

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.

संबंधित रेसिपी