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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  <h1>Erika Berger</h1>
<div class="bio">"My works combine photography, digital art, collage and drawing. I work on the distortion and the destruction of the images, manipulating, corrupting and breaking the shape and the meaning. I have a strong passion for the glitch aesthetic and the glitch technique. We are not perfect. We are a glitch."</div>
  <ul id="imageGallery">
  <li><a href="https://mir-s3-cdn-cf.behance.net/project_modules/1400/a2b78743632399.57f676880ede8.png"><img src="https://mir-s3-cdn-cf.behance.net/project_modules/1400/a2b78743632399.57f676880ede8.png" width="250" alt=""></a></li>
  <li><a href="https://mir-s3-cdn-cf.behance.net/project_modules/1400/b3c65743632399.57f6768812e81.png"><img src="https://mir-s3-cdn-cf.behance.net/project_modules/1400/b3c65743632399.57f6768812e81.png" width="250" alt=""></a></li>
  <li><a href="https://mir-s3-cdn-cf.behance.net/project_modules/1400/29072243632399.57f6768813a77.png"><img src="https://mir-s3-cdn-cf.behance.net/project_modules/1400/29072243632399.57f6768813a77.png" width="250" alt=""></a></li>
<div class="link">More on <a class="more" href="https://www.behance.net/gallery/43632399/Statue-of-Glitch" target="_blank">Behance</a></div>
<div id="overlay"></div>
              body {
	font-family: 'Open Sans', sans-serif;
  color: white;
background: #9c4dcd; 
background: -moz-linear-gradient(-45deg,  #9c4dcd 0%, #d06193 52%, #f1b728 100%); 
background: -webkit-linear-gradient(-45deg,  #9c4dcd 0%,#d06193 52%,#f1b728 100%);
background: linear-gradient(135deg,  #9c4dcd 0%,#d06193 52%,#f1b728 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9c4dcd', endColorstr='#f1b728',GradientType=1 ); 
  padding-bottom: 40px;
  background-size: cover;
h1 {
	text-align: center;
.bio {
  max-width: 400px;
  margin: 0 auto;
  padding-bottom: 30px;  

ul {
margin: 0 auto;
padding: 0;
display: block;
max-width: 980px;
text-align: center;
ul li {
display: inline-block;
padding: 8px;
background: #9c4dcd;
transition: 0.7s;
ul li img {
 display: block;
  right: 30px;
ul li:hover {
  background: #f1b728;
transition: 0.7s;
a {
text-decoration: none;
.link {
  text-align: center;
  color: white;
.link a {;
  font-weight: bold;
  cursor: pointer;
  color: #9c4dcd;
#overlay {
    height: 100%;
    background: rgba(0,0,0,0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 27px;
  display: none;
#overlay img {
  width: 400px;
  margin-top: 20px;
  position: absolute;
  margin: 0 auto;
              //append overlay to the body
var $overlay = $('<div id="overlay"></div>');
var $image = $('<img>');



$('#imageGallery a').click(function(){
  var imageLocation = $(this).attr('href');
  $image.attr('src', imageLocation);

// mgGlitch.js : a small jQuery helper for glitch by Hadrien Mongouachon

//on Github: https://github.com/hmongouachon/mgGlitch
$( function() {
		$( "#overlay img" ).mgGlitch({
          // set 'true' to stop the plugin
				  destroy : false, 
          // set 'false' to stop glitching
          glitch: true, 
          // set 'false' to stop scaling
          scale: true, 
          // set 'false' to stop glitch blending
          blend : true, 
          // select blend mode type
          blendModeType : 'hue',
          // set min time for glitch 1 elem
          glitch1TimeMin : 10, 
          // set max time for glitch 1 elem
          glitch1TimeMax : 20,
          // set min time for glitch 2 elem
          glitch2TimeMin : 1, 
          // set max time for glitch 2 elem
          glitch2TimeMax : 10, 

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.