123

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.

            
              <div class="outer">
<img src="https://s-media-cache-ak0.pinimg.com/736x/a6/13/3e/a6133eb84008b55794767db4eaad0cb3.jpg" style="max-width:500px;width:100%;display:block;margin:2rem auto"/>
<div class="wrapper">
  <div class="nav">
    <span class="label">NAVIGATION</span>
    <ul>
      <li><a href="#hot"><b>Hot right now</b></a></li>
      <li><br /><a href="#spotify"><b>Spotify</b></a>
        <ul>
          <li><a href="#spotify-playlists">Lieblings-Listen</a></li>
          <li><a href="#spotify-maxjams">ma.xj.am</a></li>
          <li><a href="#spotify-themen">Thematische Listen</a></li>
          <li><a href="#ost">OST</a></li>
          <li><a href="//open.spotify.com/user/djtulpedjzwiebeldjteam" target="_blank">Schlager der Woche</a></li>
        </ul>
      </li>
      <li><br /><a href="#soundcloud"><b>SoundCloud</b></a>
        <ul>
          <li><a href="#soundcloud-mixes">Mixes</a></li>
          <li><a href="#soundcloud-playlists">Playlists</a></li>
          <li><a href="#soundcloud-songs">Einzelne Songs</a></li>
          </ul>
      </li>
    </ul>
  </div>
  <div class="heavyrotation">
    <a name="hot"></a>
    <h1>Heavy Rotation — <i>So hot right now</i></h1>
    <iframe src="https://open.spotify.com/embed/album/2fCZPjWKREW56Ietdk9WVx" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
  </div>
  <a name="spotify"></a>
  <h1>Spotify</h1>
    <a name="spotify-playlists"></a>
<h2>Lieblings-Listen</h2>
  <ul>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/7cNFCy5aOSwNYjB5FKMYJe" target="_blank">Liebe, Zeit &amp; Zuversicht</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A7cNFCy5aOSwNYjB5FKMYJe" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/2N6dacY932x8BYSfENFs0o" target="_blank">Hörbstlich 2018</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A2N6dacY932x8BYSfENFs0o" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/6W3ID8ykkpPIHw4h6CHt7j" target="_blank">Spätsommer Playlist 2017</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A6W3ID8ykkpPIHw4h6CHt7j" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/2Gn1WgHGxPgmHscq0NLmwy" target="_blank">Of Sins, Grails, Chains, Tears, Weeds &amp; Seeds</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A2Gn1WgHGxPgmHscq0NLmwy" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/6gbufuq8jEEhJ4RqBYN3je" target="_blank">Wreck My Balls All Day</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A6gbufuq8jEEhJ4RqBYN3je" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/6iK4sJFad6mk8loivtDFsn" target="_blank">Maybe You’ll Be Dancing Now</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A6iK4sJFad6mk8loivtDFsn" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/6gbufuq8jEEhJ4RqBYN3je" target="_blank">Nothing’s easy or comes soft</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A6gbufuq8jEEhJ4RqBYN3je" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
  </ul>
  <a name="spotify-maxjams"></a>
  <h2>ma.xj.am 2011</h2>
<ul>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/53BUMZHUDaL8XEnRGyZA5h" target="_blank">ma.xj.am #01</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A53BUMZHUDaL8XEnRGyZA5h" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/5Ypiydusding7GPM5ajibX" target="_blank">ma.xj.am #02</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A5Ypiydusding7GPM5ajibX" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/67K9wRrjMNdX22jGWN4E1E" target="_blank">ma.xj.am #03</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A67K9wRrjMNdX22jGWN4E1E" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/5nMVdqT3YXWkAfjhAAtvVH" target="_blank">ma.xj.am #04</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A5nMVdqT3YXWkAfjhAAtvVH" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/4fBf54eTNjnm0C2VaSjvuA" target="_blank">ma.xj.am #05</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A4fBf54eTNjnm0C2VaSjvuA" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/7BYJWNfJmKzDuINU4SrlG1" target="_blank">ma.xj.am #06</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A7BYJWNfJmKzDuINU4SrlG1" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/5pfosZ4lV2gtyocX0GhWSI" target="_blank">ma.xj.am #07</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A5pfosZ4lV2gtyocX0GhWSI" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/3OW2YcNPonCsGgQK89rKGN" target="_blank">ma.xj.am #08</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A3OW2YcNPonCsGgQK89rKGN" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/7iCOIP2KpV65sg90DKhMSJ" target="_blank">ma.xj.am #09</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A7iCOIP2KpV65sg90DKhMSJ" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/3wLCplpLMuAxoTxxwjSRk8" target="_blank">ma.xj.am #10</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A3wLCplpLMuAxoTxxwjSRk8" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/0AXMGtV3858sCRAWRyIwc5" target="_blank">ma.xj.am #11</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A0AXMGtV3858sCRAWRyIwc5" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
  <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/3mVcOr8pLYAfIv9XRtWTxq" target="_blank">ma.xj.am #12</a></h3><iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A3mVcOr8pLYAfIv9XRtWTxq" width="300" height="380" frameborder="0" allowtransparency="true"></iframe></li>
</ul>
<h2 class="muted">ma.xj.am 2012</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2013</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2014</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2015</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2016</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2017</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2018</h2>
  <p class="muted">may follow</p>
<h2 class="muted">ma.xj.am 2019</h2>
  <p class="muted">may follow</p>
  <h2>Schlager der Woche</h2>
  <p>…gibt’s auf dem <a href="https://open.spotify.com/user/djtulpedjzwiebeldjteam" target="_blank">DJ Tulpe DJ Zwiebel DJ-Team → Spotify-Account</a></p>
  <a name="spotify-themen"></a>
<h2>Thematische Listen</h2>
  <ul>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/2E0zdi63xZleQKjRz1iid3" target="_blank">Klassik</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A2E0zdi63xZleQKjRz1iid3" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/6zLzZ8VLuooRSXQtknP7Y6" target="_blank">Surfer Guitar</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A6zLzZ8VLuooRSXQtknP7Y6" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
     <li><h3><a href="https://open.spotify.com/user/max.schalch/playlist/4swXrbRBc0mobvjyk8YcpP" target="_blank">Fokus, im Tunnel</a></h3>
      <iframe src="https://embed.spotify.com/?uri=spotify%3Auser%3Amax.schalch%3Aplaylist%3A4swXrbRBc0mobvjyk8YcpP" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
    </li>
  </ul>
  <a name="ost"></a>
<h2>Original Soundtracks</h2>
  <ul>
    <li><h3><a href="https://open.spotify.com/album/5kSUsy5FU3Wcxd4DBvXFm4" target="_blank">Bladerunner 2049</a></h3>
      <iframe src="https://open.spotify.com/embed/album/5kSUsy5FU3Wcxd4DBvXFm4" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/album/1yyFmCMeNtuLWsLZAXPStf" target="_blank">Jurassic Park</a></h3>
      <iframe src="https://open.spotify.com/embed/album/1yyFmCMeNtuLWsLZAXPStf" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
    </li>
    <li><h3><a href="https://open.spotify.com/album/4AjdY0NYlYZhKSSlGZA1Zp" target="_blank">Das fünfte Element</a></h3>
      <iframe src="https://open.spotify.com/embed/album/4AjdY0NYlYZhKSSlGZA1Zp" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
    </li>
  </ul>
<h2>Mixtapes</h2>
  <p><a href="https://open.spotify.com/user/max.schalch" target="_blank">→ alle Spotify-Listen</a></p>
  <a name="soundcloud"></a>
  <h1>SoundCloud</h1>
  <a name="soundcloud-mixes"></a>
  <h2>Mixes</h2>
  <ul>
    <li><h3><a href="https://soundcloud.com/cafe-society/cafe-society-1-mr-harvey-miller-summer-mix">Cafe Society #1 – Mr. Harvey Miller</a></h3><iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/217532843&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
    </li>
    <li><h3><a href="https://soundcloud.com/malaamusic/who-is-malaa-live-in-toronto">Who Is Malaa? (Live) – Malaa</a><h3><iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/244272006&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
  </li>
      <li><h3><a href="https://soundcloud.com/pigeon_hole/pigeon-hole-spring-mix-2016">Spring Mix 2016 – Pigeon Hole</a><h3><iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/249524165&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
  </li>
  </ul>
        <a name="soundcloud-playlists"></a>
  <h2>Playlists</h2>
    <iframe style="max-width:500px" width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/150077188&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
        <a name="soundcloud-songs"></a>
    <h2>Songs</h2>
    <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/214529469&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
    <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/228900549&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
    <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/231391179&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
    <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/231816730&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
  </div>
    </div>
            
          
!
            
              body,html {
  margin:0;
  padding:0;
}
body {
  background:#CFD8DC;
  font-family:sans-serif;
  font-weight:lighter;
  text-align:center;
  color:#E64A19;
  font-size:1rem;
  line-height:1.4rem
}
.outer {
  width:100%;
  max-width:100%;
}
.wrapper {
  width:90%;
  margin:0 auto
}
h1,h2,h3 {
  font-weight:lighter;
  font-size:2rem;
  color:#455A64;
  margin:5rem 0;
}
h2 {
  font-size:1.5rem;
  /*color:#E64A19;*/
  margin:1.5rem 0;
}
h3 {
  font-size:1rem;
  /*color:#455A64;*/
  margin:1rem 0;
}
h3 a {
  color:#455A64
}
h3 a:hover {
  color:#37474F
}
img {
  border:1px solid #BDBDBD;
  margin:2rem;
  width:100%;
  max-width:500px
}
a {
  color:#E64A19;
  text-decoration:none
}

ul {
  padding-left:0;
}

a:hover {
  color:#BF360C;
  text-decoration:underline
}
li {
  display:inline-block;
}
.nav li {
  display:block;
}

.nav ul ul {
  margin-right:0px;
}

.nav ul ul li:after {
  content:" ←";
}

iframe {
  max-width:300px;
}
p {margin:1rem 0 1.5rem}

.nav {
  position:fixed;
  width:300px;
  bottom:30%;
  right:-280px;
  background:#B0BEC5;
  padding:.5rem;
  text-align:right;
  line-height:1.2rem;
  transition:all .2s;
  font-weight:normal;
}
.nav.open {
  right:0px;
  transition:all .4s;
}

.label {
  position:absolute;
  left:-30px;
  top:50px;
  transform:rotate(270deg);
  cursor:pointer;
}

.heavyrotation {
  ackground:#fff url('//i.imgur.com/ojWPAE7.png') right bottom no-repeat;
  background:#fff url('https://touchmyculture.files.wordpress.com/2014/03/images-1.jpg') right bottom no-repeat;
  padding:2rem;
  border-radius:.4rem;
  /*border:1px solid #9CCC65;*/
  text-align:left;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width:450px) {
  .heavyrotation {
    padding-bottom:200px;
  }
}


.height2 { height: 2rem; }
.height5 { height: 5rem; }
.height10 { height: 10rem; }

.muted {
  opacity:.3;
  cursor:not-allowed;
}
            
          
!
            
              $(document).ready(function(){
  $('.label').click(function(){
    $('.nav').toggleClass('open');
  });
  
  $('.nav a').click(function(){
    $('.nav').removeClass('open');
  });
  
});
            
          
!
999px
🕑 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.

Console