Analytics events: open or close a panel…
Unfolder v1.1.1 demo. This page runs the exact CSS and JavaScript that ship in the module. Use the bar above to try each option.
The demo is a made-up open-air film night. Each of the first four panels shows a different option:
Scroll the hero out of view and videos pause, as does auto-rotate; scroll back and they carry on. With Data Saver on (Chrome on Android, or prefers-reduced-data), videos wait for the play button. Print the page to see the panels as a plain list. In the Swipe row on mobile, the dots under the row show where you are and can be tapped.
Every video panel has a pause/play button. Panels five to seven use linear and radial gradients; set Panels to 7 to see them all.
YouTube needs a web server. Opened straight from your drive (file://), YouTube refuses to play (Error 153) because no referrer is sent. Run py -m http.server 8000 in this folder and open http://localhost:8000/unfolder-demo.html.
Link to a panel: #film or #stars open that panel straight from a link. The dark bar under the hero shows the analytics event each open or close fires.
Resize below 768px to see the mobile layout. The Film and Cast panels embed Big Buck Bunny (© 2008 Blender Foundation, www.bigbuckbunny.org, CC BY 3.0); the Garden clip is a CC0 sample from MDN. Escape closes an open panel in All-equal mode.