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.


                <!-- This is an example of using Trigger.js, checkout at -->

<div tg-name="_" tg-ref="container" tg-from="1" tg-to="10" tg-step="1">
  <section tg-name="_" tg-map="1,2,3,4,5,6,7,8,9,10: 1">
    <span tg-name="opacity" tg-filter="2!" tg-follow="container">A dramatically more powerful camera system.</span>
    <span tg-name="opacity" tg-filter="3!" tg-follow="container">A display so responsive, every interaction feels new again.</span>
    <span tg-name="opacity" tg-filter="4!" tg-follow="container">The world’s fastest smartphone chip.</span>
    <span tg-name="opacity" tg-filter="5!" tg-follow="container">Exceptional durability.</span>
    <span tg-name="opacity" tg-filter="6!" tg-follow="container">And a huge leap in battery life.</span>
    <span tg-name="opacity" tg-filter="6,7" tg-map="6: 0.3; 7: 1" tg-follow="container" class="pro">Let’s Pro.</span>


                :root {
  font-size: 20px;
  font-family: "Helvetica Neue", Helvetica;

body {
  background-image: conic-gradient(
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;

div {
  margin: 100vh 0;
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: #fff;
  line-height: 1.22em;
  width: 800px;

span {
  --opacity: 0.3;
  opacity: var(--opacity);

.pro {
  display: block;
  margin-top: 2.2rem;