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.


                <div class="repeater"></div>
<div class="repeater repeater--blue"></div>

<!--maybe we have a need for inline style, or don't want another class-->
<div class="repeater" style="background-color: lime"></div>

<!--Any background works-->
<div class="repeater repeater--gradient"></div>

<!--We can change other properties too, not only color-->
<div class="repeater repeater--sized"></div>

<!--Triple the lines to make a type of texture-->
<div class="repeater repeater--textured"></div>

<div class="repeater repeater--animated"></div>


                .repeater {
  background-color: red;
  height: 75px;
    Storing in a custom prop so we don't have to repeat it for both the prefixed and unprefixed property below.
  This also works with encoded, inlined svg.
  --svg: url("");
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);

.repeater--blue {
  background-color: blue;

.repeater--gradient {
  background: transparent linear-gradient(90deg, red, purple, blue, green);

.repeater--sized {
  background-color: white;
  height: 18px;

.repeater--textured {
  background: #b97aff;
  --texture-lines: 5;
  --mask-size: calc(250px / var(--texture-lines));
  -webkit-mask-size: var(--mask-size);
  mask-size: var(--mask-size);

@keyframes move {
  to {
    --pos: 100%;
    background: #ff007a;
    -webkit-mask-position: var(--pos);
    mask-position: var(--pos);

.repeater--animated {
  animation: move 0.6s infinite linear alternate;
  background: #7aebff;

/* Demo setup styles */
.repeater + .repeater {
  margin-top: 2rem;

body {
  background-color: #252525;