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

              
                <body>
  <header>
    <h2>Checking Ur Browser</h2>
  </header>
  <div class="bg-frame">
    <div class="square-first"></div>
    <div class="square-second"></div>
    <div class="square-third"></div>
  </div>
</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap");

/* global */
:root {
  --curve: cubic-bezier(0.2, 1, 0.6, 1);
}

body {
  background-image: radial-gradient(
    circle farthest-corner at 10% 20%,
    rgba(28, 38, 47, 1) 0%,
    rgba(37, 47, 57, 1) 90%
  );
}

h2 {
  font-family: "Major Mono Display", monospace;
  font-size: 5em;
  color: #fffee4;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  h2 {
    display:none;
  }
}

/* frame */
.bg-frame {
  width: 400px;
  height: 400px;
  background-color: #fffee4;
  border-radius: 50%;
  box-shadow: 0 10px 20px #fffee4;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* squares */
.square-first {
  width: 96px;
  height: 96px;
  background-color: #46466e;
  border-radius: 35px;
  position: relative;
  top: 152px;
  left: 152px;
  animation: first 4s var(--curve) 0s infinite alternate both;
}

.square-second {
  width: 64px;
  height: 64px;
  background-color: #a6ed8e;
  border-radius: 20px;
  position: absolute;
  top: 168px;
  left: 168px;
  animation: second 4s var(--curve) 0s infinite alternate both;
}

.square-third {
  width: 32px;
  height: 32px;
  background-color: #f2ffdf;
  border-radius: 11px;
  position: absolute;
  top: 184px;
  left: 184px;
  animation: third 4s var(--curve) 0s infinite alternate both;
}

/* keyframes */
@keyframes first {
  0% {
    transform: scale(0) rotate(0deg);
    box-shadow: 2px 2px 2px 2px hsla(0, 0%, 0%, 0);
  }
  20% {
    transform: scale(0) rotate(0deg);
    box-shadow: 2px 2px 2px 2px hsla(0, 0%, 0%, 0);
  }
  50% {
    transform: scale(1) rotate(360deg);
    box-shadow: 8px 8px 16px 0 hsla(0, 0%, 0%, 0.4);
  }
  100% {
    transform: scale(1) rotate(360deg);
    box-shadow: 8px 8px 16px 0 hsla(0, 0%, 0%, 0.4);
  }
}

@keyframes second {
  0% {
    transform: scale(0) rotate(0deg);
    box-shadow: 1px 1px 1px 1px hsla(0, 33%, 1%, 0.1);
  }
  30% {
    transform: scale(0) rotate(0deg);
    box-shadow: 1px 1px 1px 1px hsla(0, 0%, 0%, 0.1);
  }
  60% {
    transform: scale(1) rotate(-360deg);
    box-shadow: 4px 4px 8px 0 hsla(0, 0%, 0%, 0.4);
  }
  100% {
    transform: scale(1) rotate(-360deg);
    box-shadow: 4px 4px 8px 0 hsla(0, 0%, 0%, 0.4);
  }
}

@keyframes third {
  0% {
    transform: scale(0) rotate(0deg);
    box-shadow: 0.5px 0.5px 0.5px 0.5px hsla(0, 0%, 0%, 0.1);
  }
  40% {
    transform: scale(0) rotate(0deg);
    box-shadow: 0.5px 0.5px 0.5px 0.5px hsla(0, 0%, 0%, 0.1);
  }
  100% {
    transform: scale(1) rotate(360deg);
    box-shadow: 2px 2px 4px 0 hsla(0, 0%, 0%, 0.4);
  }
  100% {
    transform: scale(1) rotate(360deg);
    box-shadow: 2px 2px 4px 0 hsla(0, 0%, 0%, 0.4);
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console