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="page">
    <div class="blink"></div>
    <img class="rabbit" src="" alt=" " />
    <p>She was just about to nod off when suddenly a white rabbit wearing a vintage tweed porkpie hat dashed by&hellip; looking anxiously at his smartphone!</p>
    <p>The phone chimed at him.</p>
    <p>&ldquo;I know! I know! I’m late!&rdquo; squeaked the rabbit, more out of annoyance than concern.</p>



                .page {
  background: url('') no-repeat;
  width: 800px; height: 600px;
  margin: 0 auto;
  overflow: hidden;
  position: absolute;
  top: 50%; margin-top: -300px;
  left: 50%; margin-left: -400px;
  background-size: 100% auto;

p { /*hidden from view, not from screen readers!*/
  position: absolute; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  height: 1px; width: 1px; 
  margin: -1px; 

.blink {
  background: url('') 0 100% no-repeat;
  background-size: 100% auto;
  animation: scene-blink 1s steps(5) infinite alternate;
  position: absolute;
  width: 100%; height: 100%;
  z-index: 2;

/* If someone's viewing in a browser that can't support animations, the rabbit is front and center, the eye open. That's GRACEFUL DEGRADATION.*/
.rabbit {
  position: absolute;
  top: 60%; margin-top: -245px;
  left: 50%; margin-left: -244px;
  z-index: 1;
  animation: rabbit-run 10s forwards;

.csstransitions .rabbit {
  left: -100%;

@keyframes scene-blink {
  0% { background-position: 0 0; }
  100% { background-position: 0 125%; }

@keyframes rabbit-run {
  50% { top: 80%; }
  100% {
    top: 60%;
    left: 200%;

body{ background: #000; }