Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

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


Auto Save

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.


  <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=""><img src="" width="250" alt=""></a></li>
  <li><a href=""><img src="" width="250" alt=""></a></li>
  <li><a href=""><img src="" width="250" alt=""></a></li>
<div class="link">More on <a class="more" href="" 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:
$( 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,