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.


  %h1 Funky Loader
  .btn Download


                // Colour Variables
$bg-color: #011627;
$primary-color: #2EC4B6;
$secondary-color: #F4F4F4;

// Button Variables
$btn-width: 200px;
$btn-padding: 15px;
$btn-radius: 3em;

// Universal Selector
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

// Default Styles
html,body {
  background: $bg-color;
  font-family: 'Nunito', sans-serif;

// Flexy Container
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  text-align: center;
  h1 {
    color: $primary-color;

// Button Styles
.btn {
  background: $primary-color;
  width: $btn-width;
  padding: $btn-padding;
  color: $secondary-color;
  border-radius: $btn-radius;
  box-shadow: 1px 1px 17px darken($primary-color, 45%);
  cursor: pointer;
  text-align: center;
  margin: 2em auto;
  transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
  transition-timing-function: cubic-bezier(0.600, -0.280, 0.735, 0.045);
  &__progress {
    padding: $btn-padding - 10;
    width: $btn-width + 300;
    color: transparent;
    &--fill {
      &:after {
        content: '';
        margin: -25.9px -5px;
        position: absolute;
        display: block;
        background: darken($primary-color, 10%);
        padding: $btn-radius - 2.02;
        border-radius: $btn-radius;
        animation: fill 3.4s linear forwards;
  &__complete {
    padding: $btn-padding - 5;
    width: $btn-width - 158;
    color: transparent;
    pointer-events: none;
    &:after {
      font-family: FontAwesome;
      content: "\f00c";
      color: $secondary-color;
      margin: -18px 3px;
      position: absolute;
      display: block;

// Animations
@keyframes fill {
  from {
    width: 0;
  to {
    width: 470px;


                $(function() {
  var btn = $(".btn");
  btn.on("click", function() {
    setTimeout(function() {
    }, 500);
    setTimeout(function() {
    }, 4100);
    setTimeout(function() {
    }, 4400);