Skip to content

Instantly share code, notes, and snippets.

View jaythanelam's full-sized avatar
🤠
Working from home

Jaythan Elam jaythanelam

🤠
Working from home
View GitHub Profile
@jaythanelam
jaythanelam / scroll-video-expand.js
Last active June 4, 2026 01:40
teleskope-v3 scroll-video-expand interaction (hosted for Webflow custom code)
// ============================================================
// Scroll Video Expand — teleskope-ai
// A native <video> that expands to full-bleed and plays as it
// scrolls into focus, dwells (hover to reveal controls + unmute),
// then clip-shrinks back into its contained bento card. Built on
// GSAP ScrollTrigger using a FLIP-style transform (scale/translate)
// so the geometry animates on the compositor — no width/height thrash.
//
// Production artifact: hosted on a CDN and registered as a Webflow
// hosted script (footer). Portable — no-ops on any page that lacks
@jaythanelam
jaythanelam / Loading Animation.markdown
Created February 18, 2016 16:10
Loading Animation