Responsive Modal Pop-up YouTube Videos

Pop-up YouTube videos in the middle of a transparent modal window with a very small JavaScript function. The pop-up resizes fluidly for mobile and desktop. Includes CSS3 diagonal bars loading animation.

Works in modern browsers and IE8+ (no loading animation in IE8/9).

Please view the source of this page for HTML markup, CSS and JS.

Related

More demos and snippets

Did you find this useful? There are more demos and code snippets this way.