Scroll-Expand Media
ShowcaseScrollExpand
Interactive Showcase 12 options JavaScript
Hero media that grows from a small card to full screen as you scroll, then reveals body content.
Published · by Christopher Alberto
Live demo
Open full screenAt a glance
- Component
ShowcaseScrollExpand- Category
- Interactive Showcase
- Used as
- Page block — “Showcase: Scroll-Expand Media”
- Options
- 12 editable fields
- Built with
- PHP, Twig, SCSS, JavaScript
- Platform
- WordPress · Flynt theme · Timber/Twig · ACF Pro
About this component
A scroll-driven hero: an image or video starts as a small card and expands to fill the screen as you scroll, while the title splits apart and the background fades — then the body content scrolls in.
Highlights
- Uses a sticky “pin” inside a tall track — scroll position drives the animation without hijacking the page.
- Image or video media with a poster, optional background image, and a blend-mode title option.
- Collapses to a simple layout for reduced-motion visitors.
Under the hood
Components/ShowcaseScrollExpand/
-
README.mdNotes 25 lines -
_style.scssStyles (SCSS) 197 lines -
functions.phpFields & data (PHP) 162 lines -
index.twigMarkup (Twig) 72 lines -
script.jsBehaviour (JavaScript) 60 lines