Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="container">
  <div class="inner-container">
    <div class="glitch-wrapper">
      <span data-text="4" class="text buzz err-code">4</span>
      <span data-text="0" class="text buzz err-code red">0</span>
      <span data-text="3" class="text buzz err-code">3</span>
    </div>
    <div data-text="FORBIDDEN" class="buzz text placeholder-title">FORBIDDEN</div>
    <br/>
    <div data-text="you do not have permission to access this page" class="buzz text placeholder-subtitle">you do not have permission to access this page</div>
    <div data-text="_" class="text buzz blip">_</div>
  </div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Orbitron');

body {
  font-family: Sans-serif;
  background: linear-gradient(45deg, #222529 0%,#191519 100%);
}

body:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-style: solid;
  border-width: 72px 72px 72px 72px;
  border-color: rgba(0,0,0,0.4) rgba(0,0,0,0.2) rgba(0,0,0,0.0) rgba(0,0,0,0.2);
}

$gradient-bg: radial-gradient(ellipse at center, #2e3d26 0%, #040805 100%);
$gradient-bg-attachment: fixed;
$font-color: #36ba2c;

.text {
  color: $font-color;
  font-size: 24px;
  padding: 0 4px;
  display: inline-block;
  text-shadow: 0px 0px 8px #79ba48;
}

.container {
  $positionoffset: 64px;
  background: #222;
  background: $gradient-bg;
  background-attachment: $gradient-bg-attachment;
  position: absolute;
  top: $positionoffset;
  left: $positionoffset;
  right: $positionoffset;
  bottom: $positionoffset;
  padding: 64px;
  border-radius:24px;
  overflow: hidden;
}

.container:before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.container:after {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  box-shadow: inset 0px 0px 32px 16px rgba(0,0,0,0.4);
  z-index: 2;
  border-radius: 24px;
}

.inner-container:after {
  position: absolute;
  content: '';
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url(http://i.imgur.com/VXcVUTX.png);
  border-radius: 24px;
}

.err-code {
  font-family: 'Orbitron';
  font-weight: bold;
  font-size: 128px;
  padding: 0 4px;
}

.buzz{
  color: $font-color;
  position: relative;
}

@keyframes blink {
  0% {
    opacity: 0
  }
  40% {
    opacity: 0
  }
  45% {
    opacity: 1
  }
  100% {
    opacity: 1
  }
}

.blip {
  animation: blink 1.5s steps(5, start) infinite;
}

@keyframes noise-anim{
  $steps: 30;
  @for $i from 0 through $steps{
    #{percentage($i*(1/$steps))}{
      clip:rect(random(100)+px,9999px,random(200)+px,0);
    }
  }
}

.buzz:after{
  content: attr(data-text);
  position: absolute;
  left: 4px;
  top: 0;
  background: $gradient-bg;
  background-attachment: $gradient-bg-attachment;
  animation: noise-anim 2s infinite linear alternate-reverse;
}

@keyframes noise-anim-2 {
  $steps: 30;
  @for $i from 0 through $steps {
    #{percentage($i*(1/$steps))}{
      clip:rect(random(90)+px,9999px,random(150)+px,0);
    }
  }
}

.buzz:before{
  content: attr(data-text);
  position: absolute;
  left: -3px;
  top: 0;
  padding: 0 4px;
  background: $gradient-bg;
  background-attachment: $gradient-bg-attachment;
  animation: noise-anim-2 3s infinite linear alternate-reverse;
}
              
            
!

JS

              
                
              
            
!
999px

Console