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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                body(id="wrapper")
  .wrapper
    .art(id="layer-1")
      .noise
      .texts(id="layer-2")
        span(id="text_1") 一生懸命働く  
        span(id="text_2") @Craaftx1
        span(id="text_3") 216
        span(id="text_4") かもしれない
        span(id="text_5") ポスターを毎日作る
        span(id="text_6") マジディエルロペス © 2017
      .door(id="door_1")
      .door-shadow
      .door-shadow-2
      .door(id="door_2")
      .gradient-1
      .gradient-2
      .round(id="layer-3")
        .textbox
          span(id="text_6") 儿ーピング
          h1(id="text_7" class="clip-text" data-text="作業") 作業
          h1(id="text_8" class="clip-text") 作業
      img(src="https://cdn.discordapp.com/attachments/215765926392496128/518043029630615552/fallingman.png" class="man" id="layer-4")
              
            
!

CSS

              
                /* --- Colors --- */
@color-background: #C5CAE9;
@color-art: #08263e;
@color-art-second: #27313d;
@color-font: #333;
@color-pink: #f47ece;
@color-orange: #f7863e;
@color-blue: #47eff2;
/* --- Gradient --- */
@gradient-art: linear-gradient(to bottom, @color-art, @color-art-second, @color-art-second);
@gradient-round: linear-gradient(to bottom, @color-pink, @color-pink, @color-orange, @color-orange);
@gradient-round-darken: linear-gradient(to bottom, darken(@color-pink, 5%), darken(@color-pink, 5%), darken(@color-orange, 5%), darken(@color-orange, 5%));
@gradient-shadow: linear-gradient(to bottom, @color-art, @color-art, transparent);
@gradient-shadow-circle: radial-gradient(50% bottom, ellipse cover, red, @color-art 70%);
/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css?family=Lato');

/* ----------------------------------------------- */
/* ----------------------------------------------- */

html, body {
  font-family: 'Lato', sans-serif;
  color: @color-font;
  background-color: @color-background;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.wrapper {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  @media screen and (max-height: 800px)  {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.noise {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  z-index: 10;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6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ok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
}

.art {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 664px; height: 886px;
  background: @gradient-art;
  overflow: hidden;
}

.texts {
  z-index: 50;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 664px; height: 886px;
}

span {
  position: absolute;
  font-family: "Sawarabi Gothic";
  color: #f5f5f5;
  font-size: 12px;
  letter-spacing: 2px;
  &#text_1 {
    z-index: 10;
    top: 35px; left: 30px;
  }
  &#text_2 {
    z-index: 10;
    font-size: 10px;
    text-transform: uppercase;
    top: 50px; left: 32px;
  }
  &#text_3 {
    z-index: 10;
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    top: 35px; right: 30px;
    font-weight: 500;
  }
  &#text_4 {
    z-index: 10;
    text-transform: uppercase;
    top: 50%; left: -20px;
    transform: rotate(90deg) translateY(-50%);
  }
  &#text_5 {
    z-index: 10;
    text-transform: uppercase;
    top: 50%; right: -20px;
    transform: rotate(90deg) translateY(-50%);
  }
  &#text_6 {
    z-index: 10;
    text-transform: uppercase;
    left: 50%; bottom: 30px;
    transform: translateX(-50%);
  }
}

.door {
  position: absolute; left: 50%;
  transform: translatex(-50%);
  width: 312px; height: 47px;
  &#door_1 {
    z-index: 15;
    top: 86px;
    background-color: #fff6fb;
    &::after {
      content: "";
      position: absolute;
      right: -84px; top: 0;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 47px 86px 0 0;
      border-color: #fff6fb transparent transparent transparent;
    }
    &::before {
      content: "";
      position: absolute;
      left: -85px; top: 0;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 86px 47px 0;
border-color: transparent #fff6fb transparent transparent;
    }
  }
  &#door_2 {
    bottom: 86px;
    background-color: #0f172b;
    &::after {
      content: "";
      position: absolute;
      right: -84px; top: 0;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 47px 0 0 86px;
      border-color: transparent transparent transparent darken(#0f172b, 5%);
    }
    &::before {
      content: "";
      position: absolute;
      left: -85px; top: 0;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 0 47px 86px;
      border-color: transparent transparent darken(#0f172b, 5%) transparent;

    }
  }
}

.door-shadow {
  position: absolute; 
  left: 50%; top: 90px;
  transform: translatex(-50%);
  width: 402px; height: 20px;
  border-radius: 50%;
  box-shadow:
        0 0 80px 50px #fff,  /* inner white */
        0 0 140px 60px @color-blue, /* middle magenta */
0 0 160px 90px fade(@color-blue, 80%); /* outer cyan */
  &::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -120px;
    transform: translatex(-50%);
    width: 4000px; height: 240px;
    background: radial-gradient(at bottom, transparent 5%, darken(@color-art, 5%));
  }
}

.door-shadow-2 {
  position: absolute; 
  left: 50%; top: 130px;
  transform: translatex(-50%);
  width: 320px; height: 1px;
  border-radius: 50%;
  box-shadow:
        0 0 40px 40px #fff,  /* inner white */
        0 0 70px 30px @color-blue, /* middle magenta */
0 0 80px 40px fade(@color-blue, 80%); /* outer cyan */
}

.gradient-1 {
  position: absolute; 
  top: 50%; right: -40px;
  transform: translateY(-50%) rotate(5deg);
  width: 2px; height: 500px;
  border-radius: 50%;
  box-shadow:
        0 0 80px 50px lighten(#642754, 15%),  /* inner white */
        0 0 140px 60px lighten(#642754, 5%), /* middle magenta */
0 0 160px 90px fade(#642754, 80%); /* outer cyan */
}

.gradient-2 {
  position: absolute; 
  bottom: -50px; left: -80px;
  width: 80px; height: 80px;
  border-radius: 50%;
  box-shadow:
        0 0 80px 50px lighten(#154a44, 15%),  /* inner white */
        0 0 140px 60px lighten(#154a44, 5%), /* middle magenta */
0 0 160px 90px fade(#154a44, 80%); /* outer cyan */
}

img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  filter: brightness(1);
}

.round {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  background: @gradient-round;
  box-shadow: 0 7px 14px rgba(0,0,0,0.10), 0 10px 10px rgba(211,18,150,0.22);
  .textbox {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px; height: 420px;
    span#text_6 {
      position: absolute;
      top: 60px; left: 50%;
      transform: translateX(-50%);
    }
    h1#text_7 {
      z-index: 10;
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      height: 420px;
      line-height: 420px;
      margin: 0;
      font-size: 239px;
      font-weight: bold;
      font-family: "Sawarabi Gothic";
    }
    h1#text_8 {
      z-index: 9;
      /* --- Shadow Text --- */
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      height: 420px;
      line-height: 420px;
      margin: 0;
      font-size: 240px;
      font-weight: bold;
      font-family: "Sawarabi Gothic";
      text-shadow: 0 7px 14px rgba(0,0,0,0.10), 0 10px 10px rgba(211,18,150,0.22);
    }
  }
}

/* --- Clip Text --- */
.clip-text {
  position: absolute;
  color: transparent;
  background-clip: text;
  background-image: @gradient-round-darken;
}



              
            
!

JS

              
                window.onload = function(){
	var wrapper = document.querySelector('#wrapper'),
			layerOne = document.querySelector('#layer-1'),
			layerTwo = document.querySelector('#layer-2'),
			layerThree = document.querySelector('#layer-3'),
			layerFour = document.querySelector('#layer-4');

	wrapper.addEventListener('mousemove',function(e){
		var pageX = e.clientX - window.innerWidth/2,
                pageY = e.clientY - window.innerHeight/2;
  	layerOne.style.transform = 'translateX(-' + (50 + pageX/200) + '%) translateY(-' + (50 + pageY/200) + '%)';
  	layerTwo.style.transform = 'translateX(-' + (50 + pageX/1000) + '%) translateY(-' + (50 + pageY/1000) +  '%)';
  	layerThree.style.transform = 'translateX(-' + (50 + pageX/200) + '%) translateY(-' + (50 + pageY/200) +  '%)';
  	layerFour.style.transform = 'translateX(-' + (50 + pageX/25) + '%) translateY(-' + (50 + pageY/25) + '%)';
	});
}
              
            
!
999px

Console