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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- 
"Anarchy" arises from the Greek "An," meaning without and "Archos," meaning leader.
-->
<h2>CodePen.io<span> Not Found</span></h2>
<h3>The Aftermath: A Historic Demonstration Of Anarchy</h3>

<div class="container">
    <div><h1>-404-</h1></div>
    <div></div>
    <div></div>
</div>
<canvas id="canv"></canvas>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Merriweather:900);
* {
    margin: 0;
    padding: 0;
    user-select:none;
}

html {
    height: 100%;
    overflow: hidden;
}

canvas {
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-family: 'Merriweather', serif;
}

.container {
    z-index: 3;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, hsla(0, 0%, 0%, 0) 0%, hsla(0, 0%, 0%, 0) 19%, hsla(0, 0%, 0%, 0.9) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#00000000', endColorstr = '#e6000000', GradientType = 1); 
}

.container div {
    position: absolute;
    left: 0;
    top: -20%;
    width: 100%;
    height: 20%;
    background-color: hsla(0, 0%, 0%, .09);
    box-shadow: 0 0 10px hsla(0, 0%, 0%, .2);
    animation: waves 12s linear infinite;
}

.container div:nth-child(1) {
    animation-delay: 0;
}

.container div:nth-child(2) {
    animation-delay: 4s;
}

.container div:nth-child(3) {
    animation-delay: 8s;
}

@keyframes waves {
    0% {
        top: -20%;
    }
    100% {
        top: 100%;
    }
}

h1 {
    z-index: 3;
    position: absolute;
    font: bold 20vw 'Merriweather', serif;
    left: 50%;
    top: 50%;
    margin-top: -10vh;
    width: 100%;
    margin-left: -50%;
    height: 20vw;
    text-align: center;
    color: transparent;
    text-shadow: 0 0 30px hsla(0, 0%, 0%, .5);
    animation: flicks .8s linear infinite;
}

h2 {
    z-index: 2;
    position: absolute;
    font: bold 5.5vw 'Merriweather', serif;
    left: 51%;
    top: 40%;
    width: 90%;
    margin-left: -45%;
    height: 50vw;
    text-align: center;
    color: transparent;
    text-shadow: 0 0 12px hsla(0, 0%, 0%, .5);
    animation: flicks 1.5s linear infinite;
}
span{
   font-size:7.5vw;
   text-shadow: 0 0 24px hsla(0, 0%, 0%, 1);
   animation: spanflicks 1s linear infinite;
}
h3{
  z-index:2;
  position: absolute;
  font: bold 3vw 'Merriweather', serif;
  left: 51%;
  top: 30%;
  width: 90%;
  margin-left: -45%;
  height: 50vw;
  text-align: center;
  color: transparent;
  text-shadow: 0 0 12px hsla(0, 0%, 0%, .4);
  animation: flicks 1s linear infinite;
}


@keyframes flicks {
    0% {
        text-shadow: 0 0 30px hsla(0, 0%, 0%, .5);
    }
    33% {
      color: hsla(0,0%,0%,.4);
      text-shadow: 0 0 10px hsla(0, 0%, 0%, .4);
    }
    66% {
        color: transparent;
        text-shadow: 0 0 20px hsla(0, 0%, 0%, .2);
    }
    100% {
        color: hsla(0,0%,0%,.5);
        text-shadow: 0 0 40px hsla(0, 0%, 0%, .8);
    }
}

@keyframes spanflicks {
    0% {
        text-shadow: 0 0 30px hsla(0, 0%, 0%, .5);
    }
    33% {
      color: hsla(0,0%,0%,.4);
      text-shadow: 0 0 10px hsla(2, 95%, 15%, .5);
    }
    66% {
        color: transparent;
        text-shadow: 0 0 20px hsla(2, 95%, 15%, .2);
    }
    100% {
        color: hsla(0,0%,0%,.5);
        text-shadow: 0 0 40px hsla(2, 95%, 15%, .1);
    }
}
              
            
!

JS

              
                window.requestAnimFrame = (function() {
  return window.requestAnimationFrame ||
    window.webkitRequestAnimationFrame ||
    window.mozRequestAnimationFrame ||
    window.oRequestAnimationFrame ||
    window.msRequestAnimationFrame ||
    function(callback) {
      window.setTimeout(callback, 1000 / 60);
    };
})();

var noise = (function() {
  var ب_ب;
  var ಥ_ಥ;
  var imgData;
  var px;
  var w;
  var h;
  var static;

  var flicker = function() {
    ب_ب = document.getElementById('canv');
    ಥ_ಥ = ب_ب.getContext('2d');
    ب_ب.width = w = 700;
    ب_ب.height = h = 500;
    ಥ_ಥ.fillStyle = 'hsla(255,255%,255%,1)';
    ಥ_ಥ.fillRect(0, 0, w, h);
    ಥ_ಥ.fill();
    imgData = ಥ_ಥ.getImageData(0, 0, w, h);
    px = imgData.data;
    static();
  };

  static = function() {
    setInterval(function() {
      window.requestAnimFrame(static);
      flicks();
    }, 30);
  }
  var flicks = function() {
    for (var i = 0; i < px.length; i += 4) {
      var col = (Math.random() * 255) + 50;
      px[i] = col;
      px[i + 1] = col;
      px[i + 2] = col;
    }
    ಥ_ಥ.putImageData(imgData, 0, 0);
  };

  return {
    init: flicker
  };
}());

noise.init();
              
            
!
999px

Console