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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <script src="//"></script>
<h1>Hover Effect</h1>

<a href="#" class="box">
  <h2><span>Breaking news -</span> GRAYBOX is legit</h2>
  <h3>Tonight at twelve</h3>
<a href="#" class="box">
  <h2><span>Animations -</span> are the future</h2>
  <h3>Even after today</h3>
<a href="#" class="box">
  <h2><span>Blah Blah -</span> blah blahj blah blahj</h2>
  <h3>Beep Beep</h3>
<a href="#" class="box">
  <h2><span>Thin gray lines -</span> the new thick black lines</h2>
  <h3>you heard it here first.</h3>


                @import url(;

* {
  box-sizing: border-box;

body {
  font-family: 'Merriweather', serif;
  padding: 50px;

a {
  color: #f06d06;
  text-decoration: none;

.box {
  padding: 2em;
  border: 1px solid #ccc;
  display: block;
  width: 50%;
  height: 300px;
  float: left;
  margin: -1px 0 0 -1px;
  color: black;
  background: linear-gradient(
     white, white 50%, #333 50%, #333
  background-size: 100% 202%;
  transition: all 0.2s ease;
.box h2 {
  letter-spacing: -1.5px;
  line-height: 1.2;
.box h3 {
  font: 0.8em "Lucida Grande", serif;

.box:hover {
  background-position: 100% 100%;
  animation: up-bump 0.4s ease;

.box:hover h2 {
  color: #48ad26;
.box:hover h2 span {
  color: white;
.box:hover h3 {
  color: #999;
.bump-down{animation: down-bump 0.4s ease;}

@keyframes up-bump {
  0% { padding-top: 2em; }
  50% { padding-top: 1.5em; }
  100% { padding-top: 2em; }

@keyframes down-bump {
  0% { padding-top: 2em; }
  50% { padding-top: 2.5em; }  
  100% { padding-top: 2em; }