Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


                <figure class="snip0077 blue">
  <img src="" alt="sampl45" />
    <h2>Max     <span>Castro</span></h2>
    <p>I propose we leave math to the machines and go play outside.</p>
  <a href="#"></a>
<figure class="snip0077 red hover"><img src="" alt="sample50" />
    <h2>Tricia   <span>Lucas</span></h2>
    <p>I think nighttime is dark so you can imagine your fears with less distraction.</p>
  <a href="#"></a>
<figure class="snip0077 yellow"><img src="" alt="sample46" />
    <h2>Rudy   <span>Hopkins</span></h2>
    <p>Why should I have to work for everything? It's like saying that I don't deserve it.</p>
  <a href="#"></a>


                @import url(,500,800);
figure.snip0077 {
  font-family: 'Raleway', Arial, sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 220px;
  max-width: 310px;
  max-height: 220px;
  width: 100%;
  background: #000000;
  text-align: center;
figure.snip0077 * {
  -webkit-box-sizing: padding-box;
  box-sizing: padding-box;
figure.snip0077 img {
  opacity: 1;
  width: 100%;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
figure.snip0077 figcaption {
  top: 50%;
  left: 50px;
  right: 50px;
  position: absolute;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
figure.snip0077 figcaption h2,
figure.snip0077 figcaption p {
  margin: 0;
  color: rgba(255, 255, 255, 0);
  text-shadow: 0 0 40px #ffffff;
  -webkit-transition: all 0.5s linear;
  transition: all 0.5s linear;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
figure.snip0077 figcaption h2 {
  position: relative;
  font-weight: 400;
  text-transform: uppercase;
figure.snip0077 figcaption h2 span {
  font-weight: 800;
figure.snip0077 figcaption p {
  font-size: 0.9em;
  font-weight: 500;
  opacity: 0.65;
figure.snip0077:after {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  content: '';
  opacity: 0;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.15);
  -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
  transition: opacity 0.5s,-webkit-transform 0.5s,-moz-transform 0.5s,-o-transform 0.5s,transform 0.5s;
figure.snip0077:before {
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
figure.snip0077:after {
  border-right: 2px solid #fff;
  border-left: 2px solid #fff;
  -webkit-transform: scale(1, 0);
  transform: scale(1, 0);
figure.snip0077 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
} {
  background: #0a212f;
} {
  background: #36100c;
figure.snip0077.yellow {
  background: #562e0a;
figure.snip0077:hover img,
figure.snip0077.hover img {
  opacity: 0.2;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
figure.snip0077:hover figcaption h2,
figure.snip0077.hover figcaption h2,
figure.snip0077:hover figcaption p,
figure.snip0077.hover figcaption p {
  color: #ffffff;
  text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  border-color: rgba(255, 255, 255, 0.5);
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
figure.snip0077.hover:after {
  opacity: 0.8;
  -webkit-transform: scale(1);
  transform: scale(1);

/* 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%;


                  /* Demo purposes only */
    function() {