Loading video...
Video Failed to Load
CSS picture-in-picture video transition using container queries + position: sticky 🧑🍳 .container { container-type: scroll-state; } @container scroll-state(stuck: top) { video { translate: calc(50vw - 100%) calc(100vh - 100%); } }
133,690 views • 1 year ago •via X (Twitter)
10 Comments

Serhii Bedrytskyi1 year ago
So awesome. Will share this in course?

Guillermo Avalos1 year ago
Very cool, but AFAIK this won’t work at all in Safari

Robertus1 year ago
What do you do when you need to support garbage like Safari as well that don't have full support of container queries?

Jeremy Cameron1 year ago
So smooth

Swati Awasthi1 year ago
This is slick! Love how container queries are unlocking new creative transitions like this. Definitely stealing this for my next UI experiment!

Abhay Rahul 🇳🇵1 year ago
Do you have a timeline in mind for the launch?

etcetra1 year ago
Smooth work. And What's this config panel?🤔

Alfon1 year ago
Wow! And its baseline!

Aryan🥝 #Diversion2k251 year ago
Hey I always wonder what is this tool that you use?

Nir Galon1 year ago
I always get impressed with your posts 💪
