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

              
                <figure class="snip0042 yellow">
	<figcaption>
		<h2>Vesper <span>Lynd</span></h2>
		<p>All this modern technology just makes people try to do everything at once.</p>
		<div class="icons">
			<a href="#"><i class="ion-ios-home"></i></a>
			<a href="#"><i class="ion-ios-email"></i></a>
			<a href="#"><i class="ion-ios-telephone"></i></a>
		</div>	
	</figcaption>
	<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample5.jpg" alt="sample5"/>	
	<div class="position">Sale Manager</div>
</figure>
<figure class="snip0042 blue">
	<figcaption>
		<h2>Jill <span>Masterton</span></h2>
		<p>If you couldn't find any weirdness, maybe we'll just have to make some!</p>
		<div class="icons">
			<a href="#"><i class="ion-ios-home"></i></a>
			<a href="#"><i class="ion-ios-email"></i></a>
			<a href="#"><i class="ion-ios-telephone"></i></a>
		</div>	
	</figcaption>
	<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample6.jpg" alt="sample6"/>	
	<div class="position">Human Resources</div>
</figure>
<figure class="snip0042 red">
	<figcaption>
		<h2>Ruby <span>Windsor</span></h2>
		<p>The only skills I have patience to learn are those that have no real application in life.</p>
		<div class="icons">
			<a href="#"><i class="ion-ios-home"></i></a>
			<a href="#"><i class="ion-ios-email"></i></a>
			<a href="#"><i class="ion-ios-telephone"></i></a>
		</div>	
	</figcaption>
	<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample7.jpg" alt="sample7"/>	
	<div class="position">Marketing</div>
</figure>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Raleway:400,200,300,800);
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
figure.snip0042 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 220px;
  max-width: 310px;
  width: 100%;
  background: #ffffff;
  color: #ffffff;
}
figure.snip0042 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
figure.snip0042 > img {
  max-width: 100%;
}
figure.snip0042 figcaption {
  padding: 20px 30px 20px 25%;
  position: relative;
}
figure.snip0042 figcaption h2,
figure.snip0042 figcaption p {
  margin: 0;
  text-align: right;
  padding: 10px 0;
  right: 0;
  width: 100%;
}
figure.snip0042 figcaption h2 {
  font-size: 1.3em;
  font-weight: 300;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
figure.snip0042 figcaption h2 span {
  font-weight: 800;
}
figure.snip0042 figcaption p {
  font-size: 0.9em;
  opacity: 0.8;
}
figure.snip0042 figcaption .icons {
  width: 100%;
  text-align: right;
}
figure.snip0042 figcaption .icons i {
  font-size: 26px;
  padding: 5px;
  color: #ffffff;
  top: 50%;
}
figure.snip0042 figcaption a {
  opacity: 0.3;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}
figure.snip0042 figcaption a:hover {
  opacity: 0.8;
}
figure.snip0042 .position {
  width: 100%;
  text-align: right;
  padding: 8px 30px 13px;
  font-size: 0.8em;
  opacity: 0.8;
  font-style: italic;
}
figure.snip0042:after {
  position: absolute;
  top: 0;
  left: -20%;
  height: 110%;
  width: 30%;
  background-color: #000000;
  content: '';
  border-right: 4px solid #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  -webkit-transform: skewX(-7deg) translateX(0px);
  transform: skewX(-7deg) translateX(0px);
  -webkit-backface-visibility: hidden;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}
figure.snip0042.blue {
  background: #20638f;
}
figure.snip0042.blue:after {
  background: #164666;
}
figure.snip0042.red {
  background: #962d22;
}
figure.snip0042.red:after {
  background: #6d2018;
}
figure.snip0042.yellow {
  background: #bf6516;
}
figure.snip0042.yellow:after {
  background: #924d10;
}
figure.snip0042:hover:after,
figure.snip0042.hover:after {
  -webkit-transform: skewX(-7deg) translateX(10px);
  transform: skewX(-7deg) translateX(10px);
}


/* Demo purposes only */
html {
  height: 100%;
}
body {
  background-color: #212121;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: wrap;
  margin: 0;
  height: 100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console