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

              
                <!--
<svg class="cursor1 rellax" data-rellax-speed="1" viewBox="0 0 188 296" xmlns="http://www.w3.org/2000/svg">
  
  <defs>
  <symbol id="cursor" viewBox="0 0 188 296" height="10px">
    <title>Cursor</title>
    <g fill="none" fill-rule="evenodd">
    <path d="M8.3001.125c-2.5188 0-5.03 0-7.55.025C.3901 57.76001.6052 115.38998.52505 173c.11024 30.56004-.21968 61.12498.2 91.675 10.37032-.01 20.74007.08 31.1 0 .27743-4.44488.348-8.93234.35007-13.425v-2.025l2.02497.025c4.40976.0289 8.81048.002 13.2-.05.10592-4.5143.42376-9.05769-.075-13.575l-.27496-2.525 2.52504.325c4.54232.57852 9.13448.197 13.67496.1.0866-4.35032.1844-8.70374.22504-13.05l.025-2 2 .025c3.43216.0267 6.87392-.0112 10.32496-.2l2.27504-.125-.17504 2.275c-.71368 9.51482.89384 19.03621.37504 28.55 4.48976.14849 8.97896.2084 13.47504.25l1.94992.025.025 1.95c.0878 9.64042.0657 19.27631.22504 28.925 4.4364.087 8.87376.1386 13.32496.15h1.97504l.025 1.975c.0801 4.49655.11752 8.96595.1 13.475 10.43992.14 20.88512.11 31.32496.05.37624-4.42817.5416-8.91848.22504-13.425l-.15-2.2 2.2.05c4.42952.12337 8.8712.0862 13.25-.025.15-10.38998.095-20.78495-.025-31.175-4.46072-.12198-8.91296-.1782-13.37496-.225l-1.95-.025-.025-1.95c-.15104-9.65978-.078-19.28792-.12504-28.95-4.46824-.1639-8.97896-.24806-13.47496-.125l-2.12504.05.075-2.125c.15224-3.72234.2132-7.43125.2-11.125v-2h2c19.96048-.0353 39.9032-.0274 59.87504-.25.13008-10.35002.16488-20.69997-.025-31.05-4.49024 0-8.97256-.0334-13.45008-.1l-1.94992-.025-.025-1.95c-.065-4.48808-.10104-8.98374-.075-13.475-4.46624-.1132-8.92296-.1394-13.4-.15h-1.97504l-.025-1.975c-.0491-4.45188-.088-8.89958-.17504-13.35-4.4552-.199-8.93808-.3182-13.45-.275l-2.02504.025v-2.025c-.01-4.50767-.031-9.00584-.075-13.5-4.49248.0263-8.99208-.009-13.47496-.1l-1.95008-.05v-1.95c-.0118-4.41425-.0446-8.8033-.17496-13.2-4.43424-.243-8.87832-.2822-13.35-.3h-1.97504l-.025-1.975c-.0707-4.49178-.1176-8.96993-.1-13.475-4.49776-.0175-8.98584-.0518-13.47504-.125l-1.9-.025-.075-1.9c-.1608-4.49031-.34096-9.00011-.35-13.5-4.38576-.1042-8.76824-.122-13.17504-.125h-1.94992l-.0501-1.95c-.1088-4.4705-.1688-8.96599-.12496-13.45-4.49192-.0524-8.9856-.0844-13.47504-.15l-1.9-.025-.075-1.9c-.17592-4.48987-.24096-8.98034-.25-13.5-4.46808-.1045-8.92472-.1282-13.4-.15h-1.97504l-.025-1.975c-.0282-4.4654-.0543-8.94064-.15-13.4-4.48952-.0262-9.0016-.0375-13.5-.075l-1.95-.025-.02497-1.95c-.04112-4.47935-.066-8.97978-.07503-13.475-4.49416-.1306-9.02416-.1016-13.55-.075h-1.97497l-.02503-1.975c-.0284-4.50822-.10857-9.01851-.3-13.5-2.51496-.015-5.03128-.025-7.55-.025h.00018z" fill="#FFF"/>
    <path d="M.75.16C5.79.11 10.83.12 15.86.15c.22 5.15.34 10.3.34 15.45 5.17-.04 10.34-.04 15.5.11.01 5.14.02 10.28.08 15.41-5.21-.03-10.42-.02-15.63.01-.04 72.59.15 145.17.09 217.75 5.15.06 10.29.07 15.44-.04-.05-5.13-.03-10.25.02-15.38 5.15-.09 10.35-.53 15.45.39.84 5.08.36 10.24.24 15.36-5.05.06-10.11.11-15.17.05.04 5.14-.08 10.29-.4 15.42-10.36.08-20.73-.02-31.1-.01C.3 234.12.64 203.56.53 173 .61 115.39.39 57.77.75.16zm31.03 30.96c5.15.05 10.31.07 15.46.1.11 5.12.15 10.24.18 15.36 5.13.02 10.26.05 15.39.17.01 5.13.01 10.27.27 15.41 5.14.09 10.28.11 15.42.17-.05 5.12-.01 10.25.14 15.37 5.06-.01 10.12.04 15.17.16.01 5.13.22 10.26.4 15.39 5.12.1 10.25.12 15.38.14-.02 5.13.01 10.26.11 15.4 5.12 0 10.25.07 15.36.35.15 5.06.2 10.12.2 15.19 5.13.13 10.26.16 15.39.13.05 5.15.09 10.3.09 15.45-5.2.26-10.4.22-15.6.08 0-5.14.02-10.29.02-15.44-5.22-.07-10.44-.06-15.65-.03.07-5.21.08-10.41-.01-15.61l-15.46.03c0-5.17.02-10.33.03-15.49-5.22-.12-10.43-.11-15.64-.03.01-5.21.03-10.42-.03-15.63-5.15 0-10.31.01-15.46.02-.07-5.19-.05-10.38-.11-15.57-5.18 0-10.36.01-15.53-.11.03-5.14.04-10.28-.01-15.42-5.13-.06-10.26-.05-15.39-.02-.16-5.19-.14-10.38-.12-15.57zm108.96 108.79c5.16-.14 10.31.09 15.46.32.1 5.1.14 10.2.2 15.3 5.13 0 10.25.04 15.38.17-.03 5.14 0 10.29.09 15.43 5.13.09 10.27.12 15.41.12.19 10.35.16 20.69.03 31.04-20.63.23-41.25.23-61.87.27.03 5.07.05 10.15-.23 15.22-5.2.26-10.41.2-15.61.16-.15-10.38-.14-20.76 0-31.13 20.73-.13 41.47.06 62.2-.03.07-5.19.07-10.39-.01-15.58-5.18-.03-10.37-.02-15.55-.1.01-5.15.03-10.3-.01-15.45-5.13-.05-10.27-.04-15.4.01-.19-5.25-.19-10.5-.09-15.75zm-77.86 62.32c5.15-.03 10.3-.02 15.45.01.19 5.32.43 10.68-.3 15.97-4.84.38-9.69.33-14.53.28-.02 5.01-.14 10.02-.24 15.04-5.15.11-10.37.64-15.47-.33-1.08-5.05-.56-10.25-.47-15.36 5.16-.03 10.32-.03 15.48-.03-.02-5.19-.02-10.39.08-15.58zm15.15 15.98c5.31-.58 10.65-.41 15.97-.31.11 10.34.01 20.69.07 31.03 5.19-.01 10.37-.01 15.56.1.03 10.3-.09 20.6.07 30.91 10.39.16 20.8-.33 31.18.28.6 5.18.28 10.4-.16 15.58-10.44.06-20.87.1-31.31-.04.02-5.15-.02-10.29-.13-15.44-5.1.01-10.21-.06-15.31-.16-.17-10.3-.13-20.6-.24-30.89-5.14-.04-10.28-.11-15.42-.28.56-10.27-1.48-20.54-.28-30.78zm47.18-.43c5.17-.24 10.35-.1 15.53.09.05 10.3-.07 20.6.13 30.91 5.12.05 10.23.11 15.35.25.12 10.39.18 20.78.03 31.17-5.12.13-10.25.26-15.37.02-.58-10.35-.1-20.73-.2-31.09-5.21-.11-10.42-.09-15.62-.13-.01-10.4-.12-20.82.15-31.22z" fill="#1C1C1C"/>
  </g>
    </symbol>
    </defs>
</svg>

<svg class="cursor1">
  <use xlink:href="#cursor"></use>
</svg>

-->
<div id="swup" class="transition-fade">
<div class="cookies">
  <p>Ich bin fein mit <span>Cookies</span>.</p>
  
<svg viewBox="0 0 63 64" height="25%" xmlns="http://www.w3.org/2000/svg">
  <path d="M31.351904 29.9651092L60.436593.8804205l2.12132 2.1213203L33.473225 32.086429l29.084688 29.084689-2.12132 2.121321L31.351904 34.20775 2.267216 63.292439.145895 61.171118l29.084689-29.084689L.145895 3.0017408 2.267216.8804205l29.084688 29.0846887z" fill="#000" fill-rule="nonzero" opacity=".53999996"/>
</svg>
</div>

<div class="logo rellax" data-rellax-speed="-5">mueller <span>/ design</span></div>

<a href="#">
<svg class="back rellax transition-fade" data-rellax-speed="5" viewBox="0 0 142 142" width="10%" xmlns="http://www.w3.org/2000/svg">
  <path d="M.0751725 1.745761V142h1.6705883V2.927045L130.064213 131.2454978l1.181285-1.1812843L2.927045 1.745761H142V.075173H1.7457608V0H.0751725v.075173H0v1.670588h.0751725z" fill="#fff" fill-rule="nonzero"/>
</svg>
</a>

<h1 class="case rellax" data-rellax-speed="5">
  <span>Land Rover</span><br>
  Experience Tour
</h1>
<div class="holder rellax transition-fade" data-rellax-speed="5">
<div class="card">
  <h5>Überblick</h5>
  <p>Für <span>Land Rover</span> wurde ein Spiel entwickelt, indem man durch die Prärie düst und Gegenstände einsammelt. Mit Trophäe in der Tasche, konnte man sich zur realen Tour anmelden.
  </p>
  <div class="roles">
    
    <div>
      <h5>Agentur</h5>
      <h5>Ergebnis</h5>
    </div>
    
    <div>
      <h5>Wunderman</h5>
      <h5>20.000 Teilnehmer</h5>
    </div>
    
  </div>
</div>
</div> <!-- end holder -->

<div class="container">
  
  <div class="item rellax" data-rellax-speed="-15">
    <div class="item-image" style="background: url(https://images.unsplash.com/photo-1483699862560-f524a8c11c6c?ixlib=rb-1.2.1&auto=format&fit=crop&w=3229&q=80); no-repeat center center"></div>
    
    <div class="overlay"></div>
    
  </div>
  
  <div class="item" style="background: url(https://images.unsplash.com/photo-1564308310250-da13809a3ee6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2166&q=80) no-repeat center center; ">
    
    <div class="caption">Preloader-Screen<br>für verkürztes Warten</div>
    
  </div>
  
  <div class="item" style="background: url(https://images.unsplash.com/photo-1564308310250-da13809a3ee6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2166&q=80) no-repeat center center;">
    
    <div class="caption">Onboarding</div>
    
  </div>
  
<div class="item" style="background: url(https://images.unsplash.com/photo-1490902931801-d6f80ca94fe4?ixlib=rb-1.2.1&auto=format&fit=crop&w=2250&q=80) no-repeat center center;">
    
    <div class="caption">Mit dem EVOQUE die Karte erkunden</div>
    
  </div>
  
  <div class="item" style="background: url(https://images.unsplash.com/photo-1484404289410-44b4ebf4026d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3450&q=80) no-repeat center center">
    
    <div class="caption">Nomadic traveling</div>
    
  </div>
  
  <div class="item" style="background: url(https://images.unsplash.com/photo-1502489597346-dad15683d4c2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjI0MX0&auto=format&fit=crop&w=3367&q=80) no-repeat center center">
    
    <div class="caption">Abenteuer</div>
    
<svg class="next" viewBox="0 0 186 202" height="25%" xmlns="http://www.w3.org/2000/svg">
  <path d="M184.12157027 99.81871378L84.94684678.64399028l-1.18128551 1.18128553 98.33942956 98.33942956L.6352964 100.16470324l-.00000353 1.6705928 181.4696937.00000142-98.33942602 98.33942603 1.1812841 1.1812841 99.1747242-99.1747242.05315533.05315534 1.18128552-1.18128551-.05315534-.05315534.05315322-.05315322-1.1812841-1.1812841-.05315322.05315322z" fill="#FFF" fill-rule="nonzero"/>
</svg>
    
  </div>
  
  <div class="item" style="background: url(https://images.unsplash.com/photo-1530553306204-57df179bbb23?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2250&q=80) no-repeat center center">
    
    <div class="overlay"></div>
    
    <h5>Weiteres Projekt</h5>
    
    <h3 class="case"><span>PSP Rhythm</span><br>
      Audio Sequencer</h3>
    
    <a href="#">
        <svg class="view" viewBox="0 0 142 142" height="20%" xmlns="http://www.w3.org/2000/svg">
  <path d="M141.92483 140.254239V0h-1.67059v139.072955L11.93579 10.754502l-1.18129 1.181285 128.31845 128.318452H0v1.670588h140.25424V142h1.67059v-.075173H142v-1.670588h-.07517z" fill="#FFF" fill-rule="nonzero"/>
</svg> 
</a>
  </div>
</div>
  
</div> <!-- end swup div -->
              
            
!

CSS

              
                ::-webkit-scrollbar { display: none;}
::-moz-selection { background: grey; color: #ddd; }
::selection { background: grey; color: #ddd; }

body {  
  background: #ddd;
  margin: 0;
  
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-size: 20px;
  
  transition: all 0.5s ease-out;
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.logo {
  position: absolute;
  width: 320px;
  height: 50px;
  top: calc(50% - 25px);
  left: calc(50% - 160px);
  
  text-align: center;
  font-weight: 400;
  font-size: 25px;
  color: #ccc;
  
  pointer-events: none;
  z-index: 9;
  transition: opacity .6s 1.5s ease-in;
}
.logo span {
  font-weight: 100;
  color: #333;
}
.online { opacity: 0; }

h1 {
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: 0.001em;
  word-spacing: 1px;
  color: #fff;
  
  bottom: 35px;
  left: 90px;
  width: 800px;
  height: auto;
  vertical-align: bottom;
  
  z-index: 10;
}
h1.case {
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: 0.001em;
  word-spacing: 1px;
  color: #fff;
  
  bottom: 51px;
  left: 92px;
  width: 600px;
  height: auto;
  vertical-align: bottom;
  
  z-index: 2;
}
h1 span { font-weight: 400 !important; }
h1.case span { font-weight: 400 !important; color: #ccc; letter-spacing: -0.007em; }

h3.case {
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: 0.001em;
  word-spacing: 1px;
  color: #fff;
  
  bottom: 35px;
  left: 90px;
  width: 700px;
  height: auto;
  vertical-align: bottom;
  
  z-index: 2;
}
h3 span { font-weight: 400 !important; }
h3.case span { font-weight: 400 !important; color: #ccc; letter-spacing: -0.007em; }

h5 { font-size: 10px; margin: 0 0 20px; text-transform: uppercase; letter-spacing: 2px; }
.card h5 { color: #414141; }

.card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  background: #0D0D0D;
  top: 50px;
  width: 700px;
  height: calc(100vh - 200px);
  color: #fff;
  padding: 0 100px;
  
  z-index: 5;
  
  animation: .5s ease-out .2s intro;
  animation-fill-mode: forwards;
}
.holder {
  position: absolute;
  top: 50px;
  width: 700px;
  height: calc(100vh - 100px);
  left: 100%;
  
  z-index: 5;
}
.roles { display: flex; flex-direction: row; margin-top: 20px; }
.roles > * { flex: 1; margin-right: 50px; }
.roles > *:first-child { flex: .9; text-align: right; }
.roles > *:last-child { flex: 1; margin-right: 0; }
.roles > *:last-child h5 { color: #ccc; font-weight: 100; }



p {
  color: #ccc;
  line-height: 1.4em;
  letter-spacing: -0.007em;
  word-spacing: 2px;
  margin: 0 0 18px;
}
p span { font-weight: 400; }

.back {
  left: 0;
  margin: 100px;
  opacity: 0;
  transition: all 0.1s ease;
  
  width: 120px;
  
  animation: .6s ease-in-out 1s intro-arrow;
  animation-fill-mode: forwards;
}
.back:hover { width: 110px; }
.next {
  right: 0;
  bottom: 0;
  width: 120px;
  margin: 100px;
  opacity: 1;
  transition: all 0.25s ease-out;
}
.view {
  right: 0;
  bottom: 0;
  margin: 100px;
  width: 120px;
  opacity: 1;
  transition: all 0.25s ease-out;
}
svg {
  position: absolute;
  
  z-index: 2;
}

.container {
  display: flex;
  overflow-x: auto;
  width: 700vw;
}
img {
  width: 100%;
  height: auto;
  
/*  object-fit: cover;
    object-position: center; */
  
  z-index: 2;
}

.item {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100px;
  margin-right: 0;
  padding: 0;
  overflow: hidden;
  
  background: #0D0D0D;
  background-size: cover;  
  object-fit: cover;
  
  filter: blur(0);
  
  z-index: 2;
  transition: filter 1.6s ease-in;
}
.item-image {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  margin-right: 0;
  padding: 0;
  overflow: hidden;
  
  background-position: 50% 50%;
  background: #0D0D0D;
  background-size: cover;  
  object-fit: cover;
  
  filter: blur(0);
  
  z-index: 1;
  transition: filter 1.6s ease-in;
}
.item:first-child {
  z-index: 1 !important;
}
.item:last-child {
  background: black;
}
.item:last-child h5 { position: absolute; left: 100px; top: 50vh; color: #ccc; z-index: 3; }
.overlay { position: absolute; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 1; transition: background .5s ease-in; }
.view:hover ~ .overlay { background: rgba(0,0,0,0); transition: background 1s ease-in; }
.caption {
  position: absolute;
  display: flex;
  max-width: 400px;
  min-width: 100px;
  height: auto;
  padding: 20px 30px;
  bottom: 0;
  right: 100px;
  
  color: #eee;
  font-size: 12px;
  font-weight: 400; 
  letter-spacing: 2px;
  line-height: 16px;
  background: rgba(0,0,0,.9);
  
  z-index: 6;
}

.cookies {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  bottom: 0;
  left: calc(50% - 195px);
  width: 390px;
  height: 100px;
  padding: 22px 100px 0 50px;
  
  background: #fff;
  z-index: 10;
  cursor: pointer;
  transition: all 0.25s ease-in;
}
.cookies p { color: #414141; }
.cookies svg { right: 40px; top: 40px; opacity: .6; transform: rotate(0deg); transition: all 0.5s ease-in-out; }
.cookies:hover svg { opacity: 1; transform: rotate(-180deg); }
.cookies svg:hover { opacity: 1; transform: rotate(-360deg); }

.hide { transform: translateY(100px); }
.blur { filter: blur(1rem); }

@keyframes intro {
  0% { transform: translateX(0); }
  100% { transform: translateX(-30%); }
}

@keyframes intro-arrow {
  0% { transform: translateX(30px) translateY(30px); opacity: 0; }
  100% { transform: translateX(0) translateY(0);; opacity: 1; }
}


@media only screen and (max-width: 800px)  {
  .logo { font-size: 18px; }
  h1.case {font-size: 35px; line-height: 35px; left: 80px; }
  .back { margin: 80px; }
  p { font-size: 20px; width: 90%; }
  .card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  background: #0D0D0D;
  top: 25px;
  width: 700px;
  height: calc(100vh - 120px);
  color: #fff;
  padding: 0 100px;
  
  z-index: 5;
  
  animation: 1s ease-out 1.6s intro;
  animation-fill-mode: forwards;
}
  
  @keyframes intro {
  0% { transform: translateX(0); }
  100% { transform: translateX(-10%); }
}
}



/* very important */
html {
    visibility: visible;
    opacity: 1;
}

.transition-fade {
  transition: 0.4s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
}
              
            
!

JS

              
                // Also can pass in optional settings block
  var rellax = new Rellax('.rellax', {
    center: false,
    wrapper: null,
    round: true,
    vertical: false,
    horizontal: true
  });



// Cookies
document.addEventListener('DOMContentLoaded', function() {
	[].forEach.call(document.querySelectorAll('.cookies'), function(el) {
		el.addEventListener('click', function(e) {
			if (e.target.nodeName.toLowerCase() == 'a') {
				e.preventDefault();
			}
			[].forEach.call(document.querySelectorAll('.cookies'), function(el) {
				el.classList.add('hide');
			});
		});
	});
	[].forEach.call(document.querySelectorAll('.cookies'), function(el) {
		el.addEventListener('click', function(e) {
			if (e.target.nodeName.toLowerCase() == 'a') {
				e.preventDefault();
			}
			[].forEach.call(document.querySelectorAll('.item'), function(el) {
				el.classList.remove('blur');
			});
		});
	});
	[].forEach.call(document.querySelectorAll('.cookies'), function(el) {
		el.addEventListener('click', function(e) {
			if (e.target.nodeName.toLowerCase() == 'a') {
				e.preventDefault();
			}
			[].forEach.call(document.querySelectorAll('.logo'), function(el) {
				el.classList.add('online');
			});
		});
	});
});


// Scroll horizontal
document.addEventListener('wheel', function(e)
{
  if(e.type != 'wheel')
  {
    return;
  }
  let delta = ((e.deltaY || -e.wheelDelta || e.detail) >> 10) || 1;
  delta = delta * (-20);
  document.documentElement.scrollLeft -= delta;    
  // safari needs also this
  document.body.scrollLeft -= delta;    
  e.preventDefault();
});


// Swup
const swup = new Swup({
  plugins: [new SwupPreloadPlugin()]
});
              
            
!
999px

Console