Pen Settings



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


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.


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.


                <figure class="snip1174 red">
  <img src="" alt="sq-sample33"/>
    <h2>Ingredia Nutrisha</h2>
      Sometimes one should just look at things and think about things without doing things.
    <a href="#">Read More</a>
<figure class="snip1174 yellow hover">
  <img src="" alt="sq-sample35"/>
    <h2>Gordon Norman</h2>
      I don't need to compromise my principles, because they don't have the slightest bearing on what happens to me anyway.
    <a href="#">Join Today</a>
<figure class="snip1174 blue">
  <img src="" alt="sq-sample34"/>
    <h2>Desmond Eagle</h2>
      If you do the job badly enough, sometimes you don't get asked to do it again. 
    <a href="#">Get in Touch</a>


                /* Included color classes.. 
@import url(,400,700);
figure.snip1174 {
  font-family: 'Raleway', Arial, sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 220px;
  max-width: 310px;
  width: 100%;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: left;
figure.snip1174 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
figure.snip1174 img {
  max-width: 100%;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  vertical-align: top;
  opacity: 0.3;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
figure.snip1174 figcaption {
  position: absolute;
  padding: 40px 25px;
  top: 0;
  left: 0;
figure.snip1174 h2,
figure.snip1174 p {
  margin: 0;
  padding: 0;
figure.snip1174 h2 {
  margin-bottom: 10px;
  display: inline-block;
  font-weight: 700;
  font-size: 1.8em;
figure.snip1174 p {
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.4em;
figure.snip1174 a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ffffff;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8em;
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
  opacity: 0;
figure.snip1174 a:hover {
  background-color: rgba(0, 0, 0, 0.2);
} {
  background-color: #20638f;
figure.snip1174.yellow {
  background-color: #c87f0a;
} {
  background-color: #1e8449;
} {
  background-color: #222f3d;
} {
  background-color: #962d22;
figure.snip1174:hover img,
figure.snip1174.hover img {
  opacity: 0;
  -webkit-transform: scale(1);
  transform: scale(1);
figure.snip1174:hover a,
figure.snip1174.hover a {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;


                  /* Demo purposes only */
    function () {