responsivevideogallery.com - Responsive Video Gallery with CSS Grid & JavaScript

Description: Learn how to build a responsive YouTube and Vimeo gallery using CSS Grid, vanilla JavaScript, and accessible video dialogs.

Example domain paragraphs

With a simple CSS grid and the jQuery app “Fancybox”, it’s easy to make a responsive video gallery with videos from YouTube and Vimeo.

<article class="video"> <figure> <a class="fancybox fancybox.iframe" href="//www.youtube.com/embed/paG__3FBLzI"> <img class="videoThumb" src="//i1.ytimg.com/vi/paG__3FBLzI/mqdefault.jpg"> </a> </figure> <h2 class="videoTitle"> Mesopotamia</h2> </article> Use two classes: fancybox and fancybox.iframe on the a tag. Use the URL in the iframe embed code, not the copy & paste URL. Right click on the YouTube or Vimeo video thumbnail and copy the image URL for the source. Use your own class names for the article ,

Use it • Change it • Make something cool with it

Links to responsivevideogallery.com (1)