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.


                <div class="screen">
  <div class="message">Hover message!</div>


/* Animation property */
.screen {
  animation: scroll 5s infinite cubic-bezier(.52,-0.39,.3,1.43);
.screen:hover {
  animation-play-state: paused;
.screen:hover .message {
  opacity: 1;
  transform: none;
/* Keyframes */
@keyframes scroll {
  0%, 10% {
    background-position: 0 0;
  20%, 30% {
    background-position: 0 -22em;
  50%, 60% {
    background-position: 0 -44em;
  90%, 100% {
    background-position: 0 0;

/* Generat styling */
body {
  background: #36a1d9;

.screen {
  border-radius: 1em;
  background: #e25865 url(// no-repeat top center;
  background-size: 98% auto;
  border: 2em solid #fff;
  width: 40em;
  height: 30em;
  position: absolute;
  top: calc(50% - 17em);
  left: calc(50% - 22em);

.message {
  position: absolute;
  text-align: center;
  top: 4em;
  right: 4em;
  bottom: 4em;
  left: 4em;
  line-height: 6.75em;
  background: rgba(0,0,0,0.5);
  border-radius: 0.5em;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2em;
  opacity: 0;
  transition: all 0.4s ease-out;
  transform: translateY(0.5em);



                /* Learn how to create this and much more with my email course:

<3 Use code "codepen" to save 20% off the usual course price <3