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.


                p.c-ttl.u-mb100vh SCROLL ↓
  p.c-ttl Section Title
  p.c-desc This is dummy text. It is inserted to check the font size and spacing. It is not the same as the actual text.


                body {
  font-family: system-ui;
  background: #eaeaea;
  color: #000;
  text-align: center;

.c-ttl {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .02em;

.c-desc {
  font-size: 14px;
  font-weight: 400;

.c-box {
  width: 420px;
  margin: 56px auto;
  background: #fff;
  padding: 24px 40px 32px;
  box-shadow: 0 16px 24px rgba(#000,.12);

.itemAnimate {
  opacity: 0;
  transform: translateY(16px);
    opacity: 1;
    transform: translateY(0);
    transition: 1s ease;

.u-mb100vh {
  margin-bottom: 100vh;


                const options = {
  rootMargin: '0% 0% -20% 0%',
  threshold: [0, .5, 1.0],

const targets = document.querySelectorAll('.itemAnimate');
const targetsArray =, 0);

const callback = (entries, observer) => {
  const entriesArray =, 0);
  entriesArray.forEach(entry => {
    if (entry.isIntersecting) {'-animated');
    else {'-animated');

const observer = new IntersectionObserver(callback, options);

targetsArray.forEach(target => {