Const
<!-- Basic expandable hero -->
<umd-element-hero-expand>
<h1 slot="headline">Explore Our Campus</h1>
<img slot="image" src="aerial-view.jpg" alt="Campus aerial view">
<div slot="additional">
<p>Discover 1,250 acres of possibilities...</p>
</div>
</umd-element-hero-expand>
<!-- Expandable hero with video and sticky position -->
<umd-element-hero-expand data-visual-position="80">
<p slot="eyebrow">Experience Maryland</p>
<h1 slot="headline">Where Ideas Take Flight</h1>
<video slot="video" autoplay muted loop>
<source src="campus-tour.mp4" type="video/mp4">
</video>
<div slot="actions">
<button>Take Virtual Tour</button>
</div>
<div slot="additional">
<h2>Discover Your Path</h2>
<p>With over 100 undergraduate majors...</p>
</div>
</umd-element-hero-expand>
Expandable Hero Component
A hero component with expandable content area and sticky positioning support. Ideal for immersive experiences with additional content reveal.
Custom Element
<umd-element-hero-expand>
Slots
eyebrow
- Small text above headlineheadline
- Main hero headingimage
- Hero imagevideo
- Hero video (as video element or container)actions
- Call-to-action buttons/linksadditional
- Additional expandable content areaAttributes
data-visual-position
- Top position for sticky behavior (in pixels)data-top-position
- Override sticky position valueObserved Attributes
data-visual-position
- Updates sticky position dynamically