Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div class="background">
  <div class="overlay"></div>
  <iframe src="https://www.youtube.com/embed/GquEnoqZAK0?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&vq=medium&playlist=0vrdgDdPApQ" frameborder="0" allowfullscreen></iframe>
</div>
<script>
function changePattern(value) {
  document.querySelector('.overlay').style.backgroundImage = 'url(https://cdnjs.cloudflare.com/ajax/libs/vegas/2.3.1/overlays/' + value + '.png)';
}
</script>
 
<select onchange="changePattern(this.value)">
  <option value="01">Pattern #1</option>
  <option value="02">Pattern #2</option>
  <option value="03">Pattern #3</option>
  <option value="04">Pattern #4</option>
  <option value="05">Pattern #5</option>
  <option value="06">Pattern #6</option>
  <option value="07">Pattern #7</option>
  <option value="08">Pattern #8</option>
  <option value="09">Pattern #9</option>
</select>
  
</body>
</html>
 
body {
  margin: 0;
  padding: 0;
}
.background {
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  position: relative;
}
.background iframe, .background video {
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}
.overlay {
  background-image: url(https://cdnjs.cloudflare.com/ajax/libs/vegas/2.3.1/overlays/01.png);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
select {
  display: block;
  margin: 20px auto;
  width: 200px;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
tomasdevpro
0viewers