正在加载视频...
视频加载失败
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%); } }
10 条评论

Serhii Bedrytskyi1 年前
So awesome. Will share this in course?

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

Robertus1 年前
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 年前
So smooth

Swati Awasthi1 年前
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 年前
Do you have a timeline in mind for the launch?

etcetra1 年前
Smooth work. And What's this config panel?🤔

Alfon1 年前
Wow! And its baseline!

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

Nir Galon1 年前
I always get impressed with your posts 💪
