Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="index flex flex-col w-screen h-screen justify-center items-center space-y-8">
  <div class="flex items-center space-x-4">
    <h1 class="fourofour text-5xl">404</h1>
    <div class="border-l border-black h-16"></div>
    <p class="fourofour2 text-2xl">Page Not Found!</p>
  </div>
  <button type="button" class="outline-none focus:outline-none focus:ring-2 ring-blue-400 shadow-md bg-blue-600 px-4 py-2 rounded-lg hover:bg-blue-800 transform hover:scale-125 duration-300 ease-out text-white">Go back home</button>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                gsap.set('.fourofour', { scale: 1 });
gsap.set('.fourofour2', { rotateZ: -5 });

const tl = gsap.timeline({ 
  repeat: -1, 
  delay: 1,
  defaults: {
    duration: 1,
    ease: "none"
  }
});

tl.to('.fourofour', { scale: 1.1 });
tl.to('.fourofour2', { rotateZ: 5 }, 0);

tl.to('.fourofour', { scale: 1 });
tl.to('.fourofour2', { rotateZ: -5 }, '<');

              
            
!
999px

Console