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

              
                <div class="glitch-wrapper">
  <div class="glitch-text">
    ERROR 404: Not found
  </div>
</div>

<button type="button">Homepage</button>
<button type="button">Send error</button>



              
            
!

CSS

              
                @keyframes noise{
0% {background-position-y: 0px;}
100% {background-position-y: -420px;}
}

body, html{
overflow:hidden;
margin:0px;
background: rgb(31, 31, 31);
height:100vh;
box-shadow:0px 0px 122px 25px black inset;
background-image:url('https://i.imgur.com/eg7VIun.jpg');
background-repeat:repeat;
animation:noise 230ms steps(6) infinite;

}

.glitch-wrapper{
padding-top:180px;
width:100vw;
text-align:center;
animation:glitch 2s linear infinite;
margin-bottom:110px;
}


.glitch-text, button{
font-family: monospace;
font-weight:bold;
}

.glitch-text::before{
content:'ERROR 404';
color:black;
text-shadow:0px 0px 5px 10px black!IMPORTANT;
-webkit-filter: blur(7px);
-moz-filter: blur(7px);
-o-filter: blur(7x);
-ms-filter: blur(7px);
filter: blur(7px);
display:block;
position:absolute;
z-index:-1;
font-size:132px;
left:0px;
right:0px;
margin-top:-30px;
opacity:.5;
}

.glitch-text{
position:relative;
z-index:2;
opacity:.9;
margin:0 auto;
text-shadow:0px 0px 3px white;
animation:glitch 3s infinite;
cursor:pointer;
font-size:52px;
color:white;
}


button{
display:block;
opacity:.6;
box-shadow:0px 0px 3px 6px white,0px 0px 3px white;
text-shadow:0px 0px 3px black;
background:white;
border:0px;
padding:7px;
margin:0 auto;
outline:none;
cursor:pointer;
margin-top:30px;
font-size:16px;
transition:200ms;
}

button:hover, button:focus, button:active {
box-shadow:0px 0px 3px 6px black;
text-shadow:0px 0px 3px white;
background:black;
color:white;
transition:200ms;
border-top-left-radius:5px;
border-bottom-right-radius:5px;
}
 

.paused{
animation-play-state: paused;
}


/* JUST RANDOM VALUES HERE! */
@keyframes glitch{
 3%{text-shadow:7px 7px 0px red;}
6%{text-shadow:-9px 4px 0px blue;transform:translate(4px,-10px) skewX(3240deg);}
7%{text-shadow:3px -4px 0px green;}
9%{text-shadow:0px 0px 3px white;transform:translate(0px,0px) skewX(0deg);}
2% , 54%{transform:translateX(0px) skew(0deg);}
55%{transform:translate(-2px,6px) skew(-5530deg);}
56%{text-shadow:0px 0px 3px white;transform:translate(0px,0px) skew(0deg);}
57%{text-shadow:7px 7px 0px red;transform:translate(4px,-10px) skew(-70deg);}
58%{text-shadow:0px 0px 3px white;transform:translate(0px,0px) skew(0deg);}
62%{text-shadow:3px -4px 0px green;transform:translate(0px,20px) skew(0deg);}
63%{text-shadow:0px 0px 3px white;transform:translate(4px,-2px) skew(0deg);}
64%{transform:translate(1px,3px); skew(-230deg);}
65%{transform:translate(-7px,2px); skew(120deg);}
66%{transform:translate(0px,0px) skew(0deg);}

}
              
            
!

JS

              
                $('button').hover(function(){
$('.glitch-wrapper').toggleClass('paused');
$('body').toggleClass('paused');
});
              
            
!
999px

Console