@props([ 'image' => null, 'video' => null, 'poster' => null, 'title' => '', 'subtitle' => '', 'textColor' => 'text-white', 'bgColor' => '#000', 'class' => 'animated-hero-loader', ]) @php $textClass = $textColor === 'text-black' ? 'text-black' : 'text-white'; @endphp @if($poster) @push('styles') @endpush @endif
{{-- Image / Video container (gets its own border-radius animation) --}}
@if($video) @elseif($image) {{ strip_tags($title) }} @endif
{{-- Gradient overlay (inside image container so it follows border-radius) --}}
{{-- Text overlay --}}

{!! $title !!}

@if($subtitle)

{!! $subtitle !!}

@endif {{ $slot }}
{{-- Opt-in hero animation: only animate if user is at the top of the page. Uses requestAnimationFrame to wait for browser scroll restoration. --}}