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. 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


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.


                <!-- 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 -->

<!-- Credit for original HTML5/JS programming of the Matrix code: -->

<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="">What is a browser?</a>
      <br/><br/><a href="">Microsoft Internet Explorer</a><br/>
      <a href="">Mozilla Firefox</a><br/>
      <a href="">Google Chrome</a><br/>
      <a href="">Apple Safari</a><br/>
      <a href="">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);