Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>Galerie d'images</title>
  <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
  <h1>ZGalerie</h1>
  <div class="gallery">    
      <ul>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_100.jpg" alt="image"/></li>   
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_103.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_104.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_13.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_14.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_15.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_16.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_17.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_18.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_36.jpg" alt="image"/></li>
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_34.jpg" alt="image"/></li> 
          <li class="image-container"><img src="http://www.photo-libre.fr/nature/Med/Rz_35.jpg" alt="image"/></li> 
      </ul>
  </div>   
  <footer>
    <a href="http://www.photo-libre.fr">Photos Libres</a>
  </footer>
</body>
</html>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Dancing+Script:700);

* {
	margin: 0;
	padding: 0;
  box-sizing: border-box; 
}
  *::after {
    box-sizing: border-box; 
  }

body {
	width: 100%;
	background: #ffc9b6;
	text-decoration: none;
	font-family: 'Dancing Script', cursive;
	color: crimson;
}
	body h1 {
		display: block;
		margin: auto;
		margin-bottom: 5px;
		padding: 0 0 5px 0;
		width: 310px;
		text-align: center;
		font-size: 4rem;
		color: coral;
		text-shadow: 3px 3px 0 rgba(255, 143, 108, 0.8);
	}
		body h1:first-letter {
			font-size: 8.5rem;
		}

.gallery {
	width: 90%;
	margin: auto;
}
/*------------------------------------*\
  = image-container properties
\*------------------------------------*/
.image-container {
	display: inline-block;
	position: relative;
	width: 49%;
	height: 300px;
	list-style: none;
}
	.image-container:hover::after {
		position: absolute;
		z-index: 10;
		bottom: 5px;
		right: 5px;
		font-size: 25px;
		font-weight: bold;
	}
		.image-container:nth-child(1):hover::after {
			content: "Une plage sublime ";
		}
		.image-container:nth-child(2):hover::after {
			content: "Feuilles d'automne";
		}
		.image-container:nth-child(3):hover::after {
			content: "Onde d'eau";
		}
		.image-container:nth-child(4):hover::after {
			content: "Zen zénith";
		}
		.image-container:nth-child(5):hover::after {
			content: "Sapins enneigés";
		}
		.image-container:nth-child(6):hover::after {
			content: "Abeille butinant";
		}
		.image-container:nth-child(7):hover::after {
			content: "Feuille de Papayer";
		}
		.image-container:nth-child(8):hover::after {
			content: "FrogWeb";
		}
		.image-container:nth-child(9):hover::after {
			content: "Fin d'hiver";
		}
		.image-container:nth-child(10):hover::after {
			content: "Voile et Rndonnée";
		}
		.image-container:nth-child(11):hover::after {
			content: "Coucher du soleil";
		}
		.image-container:nth-child(12):hover::after {
			content: "Feille de Bananié";
		}
/*-----------------------------------*\
  = img properties
\*-----------------------------------*/
	.image-container img {
		width: 100%;
		height: 100%;
		padding: 3px;
		border-radius: 3px;
		transition:all 0.3s cubic-bezier(0.7, 2, 0.5, 1.1);
	}
		.image-container:hover img {
			position: absolute;
			z-index: 5;
			border: 5px solid #fafafa;
			border-radius: 10px;
		}
			.image-container:nth-child(odd):hover img	{
				transform: rotate(5deg) scale(1.2);
			}
			.image-container:nth-child(even):hover img {
				transform: rotate(-5deg) scale(1.2);
			}

ul:hover .image-container:not(:hover) img {
	 filter: blur(1.5px);
}
/*-----------------------------------*\
  = footer properties
\*-----------------------------------*/
footer {
	text-align: center;
}
	footer a {
		display: inline-block;
		font-size: 25px;
		padding: 5px 10px 5px 10px;
		margin-top: 10px;
		text-decoration: none;
		color: crimson;
		background: #fafafa;
		border: 2px solid #fafafa;
		border-radius: 22px;
		transition:all 0.5s;
	}
		footer a:hover {
			border: 2px solid #e93f00;
		}
		footer::after {
			content: "Power by Samples X";
			display: block;
			font-size: 20px;
			text-align: right;
			margin: 0 50px 20px 0;
		}

/*-----------------------------------*\
  = $Small media query
\*-----------------------------------*/
@media screen and (max-width: 35.5em) {
		body h1 {
		font-size: 2.5rem;
		text-shadow: 2px 2px 0 rgba(255, 143, 108, 0.8);
		width: 220px;
	}
		body h1:first-letter {
			font-size: 7rem;
		}

	.gallery {
		width: 75%;
	}

	.image-container {
		width: 100%;
		height: 280px;
	}
		.image-container:hover::after {
		bottom: 3px;
		right: 3px;
		font-size: 20px; 
		}

	footer::after {
		font-size: 16px;
		margin: 0 30px 10px 0;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console