cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              <!-- Note, this may have some issues in Firefox at present -->

<!-- This is not entirely my original work. The matrix code is from a demo I dug up about a year and a half ago, which seemed like it might find a better home on CodePen.io -->

<!-- Credit for original HTML5/JS programming of the Matrix code: http://www.scirra.com/forum/matrix-raining-code_topic51315.html -->

<div id="message">
  <h1>A glitch has occured [code: 404]</h1>
    <b>Boy</b>: Do not try and bend the website. That&#039;s impossible. Instead... only try to realize the truth. 
    <br />
    <b>Neo</b>: What truth? 
    <br />
    <b>Boy</b>: There is no page. 
    <br />
    <b>Neo</b>: There is no page? 
    <br />
    <b>Boy</b>: Then you&#039;ll see, that it is not the website that bends, it is only yourself.

<!-- The canvas must be inside a div called c2canvasdiv -->
<div id="c2canvasdiv">

  <!-- The canvas the project will render to.  If you change its ID, don't forget to change the
  ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
  <canvas id="c2canvas" width="960" height="640">
    <!-- This text is displayed if the visitor's browser does not support HTML5.
   You can change it, but it is a good idea to link to a description of a browser
   and provide some links to download some popular HTML5-compatible browsers. -->
    <h3>Your browser does not appear to support HTML5.  Try upgrading your browser to the latest version.  <a href="http://www.whatbrowser.org">What is a browser?</a>
      <br/><br/><a href="https://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br/>
      <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br/>
      <a href="https://www.google.com/chrome/">Google Chrome</a><br/>
      <a href="https://www.apple.com/safari/download/">Apple Safari</a><br/>
      <a href="https://www.google.com/chromeframe">Google Chrome Frame for Internet Explorer</a><br/></h3>

              @import "compass/css3";

* {
  padding: 0;
  margin: 0;
body {
  background: #000;
  color: #1D8A1F;
  overflow: hidden;
canvas {
  position: fixed;
  z-index: -1;
#message {
  color: rgb(29, 138, 31);
  font-family: "Lucida Console";
  position: fixed;
  z-index: 10;
  top: 35%;
  left: 20%;
  min-width: 250px;
  max-width: 50%;
  padding: 10px;
  border: 1px solid rgb(13, 82, 14);
  background: rgb(3, 3, 2);
h1 {
  font-size: 1.2em; 
  border-bottom: 1px solid #0D520E;
  padding-bottom: .6em;
  margin-bottom: .8em;
              // Size the canvas to fill the browser viewport.
jQuery(window).resize(function() {
  cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());

window.addEventListener('orientationchange', cr_sizeCanvas, false);

// Start the Construct 2 project running on window load.
jQuery(document).ready(function ()
                         // Create new runtime using the c2canvas

                         cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());

// Pause and resume on page becoming visible/invisible
function onVisibilityChanged() {
  if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)

document.addEventListener("visibilitychange", onVisibilityChanged, false);
document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
Loading ..................