Hossain Jahed

Dynamic Hero

Heroes 1.2K

About

Elevate your landing page with this interactive React hero component. It captivates users with a unique arrow animation that tracks mouse movement, pointing towards the main call-to-action. Highly customizable, allowing you to define the heading, tagline, button text, and embed rich media (images or videos) in the designated card section. Seamlessly integrates with Tailwind CSS projects and follows modern React best practices for reusability.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Dynamic Hero to your project and fits it to your theme.

Code

How Dynamic Hero is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { HeroSection } from "@/components/ui/dynamic-hero";

const DemoOne = () => {
   const myImage = (
    <img 
      src="https://cdn.21st.dev/assets/mirror/54/5463629f1d5c925ed9edc8714d89f8d639ba720eccaa41d7cb4d5419ff640ec1.jpg" 
      alt="Beautiful Landscape"
      className="w-full h-full object-cover"
    />
  );

  const myVideo = (
    <video 
      src="https://cdn.21st.dev/assets/mirror/3b/3bb938fb70049e3e45f533b37ccae995ae96516e04c2f35b0c1142e47b2a39c1.mp4" // Replace with your video URL
      autoPlay 
      loop 
      muted 
      playsInline
      className="w-full h-full object-cover"
    >
      Your browser does not support the video tag.
    </video>
  );

  return (
    <div>
      <HeroSection
        heading="Dynamic Design, Direct Action"
        tagline="Experience a hero section that not only looks great but actively leads your audience. Get started with a click."
        buttonText="Learn More"
        imageUrl="https://cdn.21st.dev/assets/mirror/54/5463629f1d5c925ed9edc8714d89f8d639ba720eccaa41d7cb4d5419ff640ec1.jpg"
        videoUrl="https://cdn.21st.dev/assets/mirror/3b/3bb938fb70049e3e45f533b37ccae995ae96516e04c2f35b0c1142e47b2a39c1.mp4" // A sample video
      />
    </div>
  );
};

export { DemoOne };

More by Hossain Jahed

View all
  • Spotlight Card

    Spotlight Card

    9.7K
  • Motion Footer

    Motion Footer

    6.3K
  • Cinematic landing Hero

    Cinematic landing Hero

    6K
  • Sign In

    Sign In

    5K
  • AI prompt Box

    AI prompt Box

    3.2K
  • Glassmorphism Trust Hero

    Glassmorphism Trust Hero

    2.9K
  • Ai chat input

    Ai chat input

    2.1K
  • Limelight Nav

    Limelight Nav

    2.1K

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • Cabin To Sky Film Hero

    Cabin To Sky Film Hero

  • Real Estate 3D Hero

    Real Estate 3D Hero

    83
  • Hero

    Hero

    1.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • Chroma Sense Hero

    Chroma Sense Hero

    21