Embedding a YouTube video onto a PNG frame (like a tablet or phone chassis)

Welcome to the community @dopalearn :wave:

Essentially you’d just need to use an absolutely positioned element (your transparent PNG) on top of a YouTube embed and give that element the pointer-events: none property.

As long as your scaling your two elements together, the PNG frame should “stick” to your YouTube embed across your breakpoints.

2 Likes