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.

            
              <body id="slidePage">
    <div class="nav">
      <a href="/" class="back-btn">&lAarr; back</a>
      <span class="side-page-nav">
        <span id="active-indicator"></span>
        <a href="#slide-1">Home</a>
        <a href="#slide-2">Project 1</a>
        <a href="#slide-3">Project 2</a>
        <a href="#slide-4">Project 3</a>
      </span>
    </div>
    <div class="slides">
      <div id="slide-1" class="slide-1 slide active">
        <div class="content-slide">
          <h2 class="heading">I am Slide number 1</h2>
          <p>keep scrolling...</p>
        </div>
        <div class="overAll"><div class="rotating-number"><span>01</span></div></div>
        <div class="svg-container">
          <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
            viewBox="0 0 261.6 359.8" style="enable-background:new 0 0 261.6 359.8;" xml:space="preserve">
            <style type="text/css">
              .slide-1-st0 {
                fill: #7C4D81;
              }
          
              .slide-1-st1 {
                fill: #6C5371;
              }
          
              .slide-1-st2 {
                fill: #AB7CB0;
              }
          
              .slide-1-st3 {
                fill: #C2A1C7;
              }
          
              .slide-1-st4 {
                fill: #86328C;
              }
          
              .slide-1-st5 {
                fill: #DCCCE1;
              }
            </style>
            <rect x="133.4" y="13.8" class="slide-1-st0" width="4.2" height="61.9" />
            <g>
              <path class="slide-1-st1" d="M123.2,152.3c-15.5-6.5-40.5-1-62.7,15.3c-20.6,15.1-33.1,35.4-33.4,51.6L10,210
          		c-1.3-16.7,15.7-39.2,37.6-55.3c28.1-20.6,60.6-24,72.8-7.6C121.6,148.8,122.5,150.5,123.2,152.3z" />
              <path class="slide-1-st0" d="M41.6,232.9c0,7.6-5.6,14.1-13.5,16.7l-7.3-25.2l-8,25c-7.5-2.7-12.8-9-12.8-16.4c0-9.8,9.3-17.8,20.8-17.8
          		C32.3,215.1,41.6,223.1,41.6,232.9z" />
              <rect x="6.6" y="208.8" class="slide-1-st2" width="28.4" height="12.5" />
            </g>
            <g>
              <path class="slide-1-st1" d="M138.4,153.6c15.5-6.5,40.5-1,62.7,15.3c20.6,15.1,33.1,35.4,33.4,51.6l17.1-9.2c1.3-16.7-15.7-39.2-37.6-55.3
          		c-28.1-20.6-60.6-24-72.8-7.6C140,150,139.1,151.7,138.4,153.6z" />
              <path class="slide-1-st0" d="M220,234.1c0,7.6,5.6,14.1,13.5,16.7l7.3-25.2l8,25c7.5-2.7,12.8-9,12.8-16.4c0-9.8-9.3-17.8-20.8-17.8
          		C229.3,216.3,220,224.3,220,234.1z" />
          
              <rect x="226.6" y="210.1" transform="matrix(-1 -4.486867e-11 4.486867e-11 -1 481.5731 432.6551)" class="slide-1-st2" width="28.4"
                height="12.5" />
            </g>
            <rect x="122" y="103.1" class="slide-1-st1" width="30.8" height="49.7" />
            <rect x="122" y="194.4" class="slide-1-st1" width="30.8" height="49.7" />
            <rect x="78.8" y="51.2" class="slide-1-st3" width="114.9" height="68.1" />
            <rect x="68.7" y="134.7" class="slide-1-st3" width="137.4" height="86.7" />
            <g>
              <g>
                <ellipse class="slide-1-st4" cx="110.7" cy="82.2" rx="13.6" ry="12.7" />
                <ellipse class="slide-1-st5" cx="110.7" cy="82.2" rx="9.6" ry="9" />
              </g>
              <g>
                <ellipse class="slide-1-st4" cx="165" cy="82.2" rx="13.6" ry="12.7" />
                <ellipse class="slide-1-st5" cx="165" cy="82.2" rx="9.6" ry="9" />
              </g>
            </g>
            <g>
              <rect x="93.7" y="236.6" class="slide-1-st1" width="27.4" height="123.2" />
              <rect x="155.7" y="236.6" class="slide-1-st1" width="27.4" height="123.2" />
            </g>
            <rect x="80.9" y="226.6" class="slide-1-st3" width="114.9" height="19.9" />
            <rect x="104" y="100.2" class="slide-1-st0" width="72.6" height="6.7" />
            <rect x="80.3" y="347.5" class="slide-1-st3" width="53.1" height="12.3" />
            <rect x="140.3" y="347.5" class="slide-1-st3" width="53.1" height="12.3" />
            <rect x="89.3" y="149.7" class="slide-1-st0" width="44.1" height="12.4" />
            <circle class="slide-1-st0" cx="176.6" cy="156" r="8.3" />
            <circle class="slide-1-st0" cx="176.6" cy="181" r="8.3" />
            <circle class="slide-1-st0" cx="176.6" cy="206" r="8.3" />
            <circle class="slide-1-st5" cx="135.5" cy="8.3" r="8.3" />
          </svg>

        </div>
      </div>
      <div id="slide-2" class="slide-2 slide">
        <div class="content-slide">
          <h2 class="heading">I am Slide number 2</h2>
          <p>keep scrolling...</p>
        </div>
        <div class="overAll">
          <div class="rotating-number"><span>02</span></div>
        </div>
        <div class="svg-container">
          <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
            viewBox="0 0 271.2 387.1" style="enable-background:new 0 0 271.2 387.1;" xml:space="preserve">
            <style type="text/css">
              .slide-2-st0 {
                fill: #8E5755;
              }
          
              .slide-2-st1 {
                fill: #E81A4B;
              }
          
              .slide-2-st2 {
                fill: #F5AAA4;
              }
          
              .slide-2-st3 {
                fill: #FAD3CC;
                stroke: #F08481;
                stroke-width: 9;
                stroke-miterlimit: 10;
              }
            </style>
            <polygon class="slide-2-st0" points="167.5,367.5 104.3,367.5 119,297 153.7,296.9 " />
            <path class="slide-2-st1" d="M124.2,331.1c-16-1.6-107.2,40.7-118.4,55c-2.4,3.1-7.2-1.6-5.4-5.1L61,247.4
          	C77.9,285.1,106.9,315.3,124.2,331.1z" />
            <path class="slide-2-st1" d="M147,331.1c16-1.6,107.2,40.7,118.4,55c2.4,3.1,7.2-1.6,5.4-5.1l-60.6-133.6C193.3,285.1,164.3,315.3,147,331.1
          	z" />
            <path class="slide-2-st2" d="M228.9,189.6c0,22.7-6.5,44.3-16,63.7c-16.9,34.5-43.4,62.2-59.8,77.3c-8.8,8.1-14.7,12.6-14.7,12.6
          	s-5.7-4.3-14.1-12c-17.3-15.8-46.3-46-63.2-83.7c-8-17.8-13.3-37.4-13.3-57.8c0-34.6,10.3-72.5,24.4-105.2
          	c34,14.5,79.8,22.5,134.2,4.3C219.5,120.3,228.9,156.5,228.9,189.6z" />
            <path class="slide-2-st1" d="M206.4,88.6C152,106.8,106.2,98.8,72.2,84.3C92.7,36.7,121.3,0,138.3,0C156.1,0,185.9,39,206.4,88.6z" />
            <circle class="slide-2-st3" cx="138.3" cy="177.7" r="41.8" />
          </svg>
        </div>
      </div>
      <div id="slide-3" class="slide-3 slide">
        <div class="content-slide">
          <h2 class="heading">I am Slide number 3</h2>
          <p>keep scrolling...</p>
        </div>
        <div class="overAll">
          <div class="rotating-number"><span>03</span></div>
        </div>
        <div class="svg-container">
          <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
            viewBox="0 0 194.9 380.2" style="enable-background:new 0 0 194.9 380.2;" xml:space="preserve">
            <style type="text/css">
              .slide3-st0 {
                fill: #948357;
              }
          
              .slide3-st1 {
                fill: #FFE5A8;
              }
          
              .slide3-st2 {
                fill: #948356;
              }
          
              .slide3-st3 {
                fill: none;
                stroke: #948356;
                stroke-width: 3;
                stroke-miterlimit: 10;
              }
            </style>
            <g>
              <path class="slide3-st0" d="M26.4,169.8h-4.1c-3.4,0-6.2-2.8-6.2-6.2v0c0-3.4,2.8-6.2,6.2-6.2h4.1c3.4,0,6.2,2.8,6.2,6.2v0
          		C32.5,167,29.8,169.8,26.4,169.8z" />
              <path class="slide3-st1" d="M45.3,203.2c0,11.2-8.7,20.3-19.7,21c-12.9,0.8-23.6-10.4-22.2-23.3c0.3-2.5,1-4.8,2-7c3.1-6.2,5-13,5.5-19.9
          		l0.6-8.8c0-1.6,1.3-2.9,2.9-2.9h19.6c1.6,0,2.9,1.3,2.9,2.9l1.2,11.6c0.6,6,2.4,11.9,5,17.3C44.6,196.8,45.3,199.9,45.3,203.2z" />
              <g>
                <g>
                  <path class="slide3-st2" d="M15.8,210.1c-3.4,0-6.1-2.7-6.1-6.1c0-3.4,2.7-6.1,6.1-6.1s6.1,2.7,6.1,6.1
          				C21.9,207.4,19.2,210.1,15.8,210.1z M15.8,198.9c-2.8,0-5.1,2.3-5.1,5.1c0,2.8,2.3,5.1,5.1,5.1s5.1-2.3,5.1-5.1
          				C20.9,201.2,18.6,198.9,15.8,198.9z" />
                </g>
                <g>
                  <path class="slide3-st2" d="M24.3,210.1c-3.4,0-6.1-2.7-6.1-6.1c0-3.4,2.7-6.1,6.1-6.1s6.1,2.7,6.1,6.1
          				C30.4,207.4,27.7,210.1,24.3,210.1z M24.3,198.9c-2.8,0-5.1,2.3-5.1,5.1c0,2.8,2.3,5.1,5.1,5.1s5.1-2.3,5.1-5.1
          				C29.5,201.2,27.2,198.9,24.3,198.9z" />
                </g>
                <g>
                  <path class="slide3-st2" d="M32.9,210.1c-3.4,0-6.1-2.7-6.1-6.1c0-3.4,2.7-6.1,6.1-6.1s6.1,2.7,6.1,6.1C39,207.4,36.2,210.1,32.9,210.1z
          				 M32.9,198.9c-2.8,0-5.1,2.3-5.1,5.1c0,2.8,2.3,5.1,5.1,5.1s5.1-2.3,5.1-5.1C38,201.2,35.7,198.9,32.9,198.9z" />
                </g>
              </g>
            </g>
            <g>
              <path class="slide3-st0" d="M103.5,275.1h-7.8c-6.6,0-12-5.4-12-12v0c0-6.6,5.4-12,12-12h7.8c6.6,0,12,5.4,12,12v0
          		C115.5,269.7,110.1,275.1,103.5,275.1z" />
              <path class="slide3-st1" d="M140.2,339.6c0,21.6-16.8,39.2-38.1,40.5c-25,1.6-45.6-20.1-42.9-45c0.5-4.8,1.9-9.3,3.9-13.5
          		c5.9-12.1,9.7-25.1,10.7-38.5l1.2-17.1c0-3.1,2.5-5.6,5.6-5.6h37.9c3.1,0,5.6,2.5,5.6,5.6l2.4,22.3c1.3,11.7,4.6,23,9.7,33.5
          		C138.8,327.3,140.2,333.3,140.2,339.6z" />
              <g>
                <g>
                  <path class="slide3-st2" d="M83.1,353.1c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8
          				C94.9,347.8,89.6,353.1,83.1,353.1z M83.1,331.3c-5.5,0-10,4.5-10,10c0,5.5,4.5,10,10,10c5.5,0,10-4.5,10-10
          				C93,335.8,88.6,331.3,83.1,331.3z" />
                </g>
                <g>
                  <path class="slide3-st2" d="M99.6,353.1c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8
          				C111.4,347.8,106.1,353.1,99.6,353.1z M99.6,331.3c-5.5,0-10,4.5-10,10c0,5.5,4.5,10,10,10c5.5,0,10-4.5,10-10
          				C109.6,335.8,105.1,331.3,99.6,331.3z" />
                </g>
                <g>
                  <path class="slide3-st2" d="M116.1,353.1c-6.5,0-11.8-5.3-11.8-11.8c0-6.5,5.3-11.8,11.8-11.8c6.5,0,11.8,5.3,11.8,11.8
          				C127.9,347.8,122.6,353.1,116.1,353.1z M116.1,331.3c-5.5,0-10,4.5-10,10c0,5.5,4.5,10,10,10c5.5,0,10-4.5,10-10
          				C126.1,335.8,121.6,331.3,116.1,331.3z" />
                </g>
              </g>
            </g>
            <g>
              <path class="slide3-st0" d="M165.6,178.3h-5.4c-4.6,0-8.3-3.7-8.3-8.3v0c0-4.6,3.7-8.3,8.3-8.3h5.4c4.6,0,8.3,3.7,8.3,8.3v0
          		C173.9,174.6,170.1,178.3,165.6,178.3z" />
              <path class="slide3-st1" d="M191,223c0,14.9-11.6,27.1-26.3,28.1c-17.3,1.1-31.6-13.9-29.7-31.1c0.4-3.3,1.3-6.5,2.7-9.3
          		c4.1-8.4,6.7-17.4,7.4-26.7l0.8-11.8c0-2.1,1.7-3.9,3.9-3.9H176c2.1,0,3.9,1.7,3.9,3.9l1.7,15.5c0.9,8.1,3.2,15.9,6.7,23.2
          		C190,214.5,191,218.6,191,223z" />
              <g>
                <g>
                  <path class="slide3-st2" d="M151.4,232.3c-4.5,0-8.2-3.7-8.2-8.2c0-4.5,3.7-8.2,8.2-8.2c4.5,0,8.2,3.7,8.2,8.2
          				C159.6,228.7,156,232.3,151.4,232.3z M151.4,217.3c-3.8,0-6.9,3.1-6.9,6.9c0,3.8,3.1,6.9,6.9,6.9c3.8,0,6.9-3.1,6.9-6.9
          				C158.3,220.4,155.2,217.3,151.4,217.3z" />
                </g>
                <g>
                  <path class="slide3-st2" d="M162.9,232.3c-4.5,0-8.2-3.7-8.2-8.2c0-4.5,3.7-8.2,8.2-8.2c4.5,0,8.2,3.7,8.2,8.2
          				C171.1,228.7,167.4,232.3,162.9,232.3z M162.9,217.3c-3.8,0-6.9,3.1-6.9,6.9c0,3.8,3.1,6.9,6.9,6.9c3.8,0,6.9-3.1,6.9-6.9
          				C169.8,220.4,166.7,217.3,162.9,217.3z" />
                </g>
                <g>
                  <path class="slide3-st2" d="M174.3,232.3c-4.5,0-8.2-3.7-8.2-8.2c0-4.5,3.7-8.2,8.2-8.2s8.2,3.7,8.2,8.2
          				C182.5,228.7,178.8,232.3,174.3,232.3z M174.3,217.3c-3.8,0-6.9,3.1-6.9,6.9c0,3.8,3.1,6.9,6.9,6.9c3.8,0,6.9-3.1,6.9-6.9
          				C181.2,220.4,178.1,217.3,174.3,217.3z" />
                </g>
              </g>
            </g>
            <line class="slide3-st3" x1="24.3" y1="157.4" x2="24.3" y2="15.8" />
            <line class="slide3-st3" x1="162.9" y1="161.4" x2="162.9" y2="19.8" />
            <line class="slide3-st3" x1="99.6" y1="251.1" x2="99.6" y2="0" />
          </svg>

        </div>
      </div>
      <div id="slide-4" class="slide-4 slide">
        <div class="content-slide">
          <h2 class="heading">I am Slide number 4</h2>
          <p>keep scrolling...</p>
        </div>
        <div class="overAll">
          <div class="rotating-number"><span>04</span></div>
        </div>
        <div class="svg-container">
          <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
            viewBox="0 0 285.2 370" style="enable-background:new 0 0 285.2 370;" xml:space="preserve">
            <style type="text/css">
              .st0 {
                fill: #0083CA;
              }
          
              .st1 {
                fill: #5EA7DC;
              }
          
              .st2 {
                fill: none;
              }
          
              .st3 {
                clip-path: url(#SVGID_2_);
              }
          
              .st4 {
                fill: #93BFE6;
              }
          
              .st5 {
                clip-path: url(#SVGID_4_);
              }
          
              .st6 {
                fill: #C7DBF2;
              }
          
              .st7 {
                fill: #475360;
              }
          
              .st8 {
                fill: #1B7AAB;
              }
            </style>
            <path class="st0" d="M14.5,368.8c2,7,20.9-17.4,48.6-25.2c27.7-7.7,48.5-19.7,46.5-26.8c-2-7-26-6.5-53.7,1.3S12.6,361.7,14.5,368.8
          	z" />
            <path class="st0" d="M163,362c-2,7-17.2-16.4-40.6-23s-40.8-17.6-38.8-24.6c2-7,22.6-7.4,46-0.9C152.9,320.2,165,355,163,362z" />
            <path class="st0" d="M249.4,21.8c-27,15.2-62.4,44-75.7,93.9C153.2,192.1,126,289,89.8,336.1h0c-1.3,0-2.5-0.1-3.6-0.3
          	c-25.4-3.5,9-116,23-194.5c14-78.5,67.8-141.9,113.4-133.8C232.3,9.3,241.4,14.3,249.4,21.8z" />
            <path class="st1" d="M274.4,170.9c-30.7,91.5-139.4,166.7-184.6,165.3c36.2-47.1,63.4-144,83.8-220.5C187,65.7,222.3,37,249.4,21.8
          	C279.1,49.4,294.4,111.4,274.4,170.9z" />
            <path class="st0" d="M249.4,21.8c-27,15.2-62.4,44-75.7,93.9C153.2,192.1,126,289,89.8,336.1h0c-1.3,0-2.5-0.1-3.6-0.3
          	c-25.4-3.5,9-116,23-194.5c14-78.5,67.8-141.9,113.4-133.8C232.3,9.4,241.4,14.3,249.4,21.8z" />
            <path class="st1" d="M274.4,170.9c-30.7,91.5-139.4,166.7-184.6,165.3c36.2-47.1,63.4-144,83.8-220.5C187,65.7,222.3,37,249.4,21.8
          	C279.1,49.4,294.4,111.4,274.4,170.9z" />
            <path class="st1" d="M89.8,336.1c36.2-47.1,63.4-144,83.8-220.5C187,65.7,222.3,37,249.4,21.8" />
            <path class="st2" d="M89.8,336.1c36.2-47.1,63.4-144,83.8-220.5C187,65.7,222.3,37,249.4,21.8" />
            <g>
              <defs>
                <path id="SVGID_1_" d="M274.4,170.9c-30.7,91.5-139.4,166.7-184.6,165.3c36.2-47.1,63.4-144,83.8-220.5
          			C187,65.7,222.3,37,249.4,21.8C279.1,49.4,294.4,111.4,274.4,170.9z" />
              </defs>
              <clipPath id="SVGID_2_">
                <use xlink:href="#SVGID_1_" style="overflow:visible;" />
              </clipPath>
              <g class="st3">
                <path class="st4" d="M99.5,337.7l-4.6-3.9c36.3-43.1,61.8-88.9,75.9-136.3c11-36.9,15-74.7,11.9-112.2l6-0.5
          			C193.6,146,182.2,239.4,99.5,337.7z" />
              </g>
              <g class="st3">
                <path class="st4" d="M186.3,292.4v-3l-3,0v-3h1.4c29.1-46.3,46.1-95,50.5-144.9c4-44.6-3.1-81.8-9.7-105.1l5.8-1.6
          			c6.8,23.8,14,61.8,9.9,107.3c-4.5,51-22,100.9-51.9,148.2l0,2.1L186.3,292.4z" />
              </g>
              <g class="st3">
                <path class="st4" d="M243.2,234.8l-5.5-2.3c38.2-92.5,21.8-171,8.6-209.6l5.7-1.9C265.4,60.3,282.2,140.4,243.2,234.8z" />
              </g>
              <g class="st3">
                <path class="st4" d="M276.8,173.3l-2.9-0.6l-3.1,0v-0.3l0.1-0.3c7.1-36.4,7.3-73.2,0.7-109.3l5.9-1.1
          			C284.2,98.6,284,136.1,276.8,173.3z" />
              </g>
              <g class="st3">
                <path class="st4" d="M142.2,322.5l-2.2-2.1l-2.3-1.8c36.5-47.4,59.9-97.9,69.3-149.9c7-38.3,6.4-76.9-1.6-114.5l5.9-1.3
          			c8.2,38.4,8.8,77.7,1.7,116.8c-9.7,53-33.4,104.3-70.5,152.5L142.2,322.5z" />
              </g>
            </g>
            <g>
              <defs>
                <path id="SVGID_3_" d="M274.4,170.9c-30.7,91.5-139.4,166.7-184.6,165.3h0c-1.3,0-2.5-0.1-3.6-0.3c-25.4-3.5,9-116,23-194.5
          			c14-78.5,67.8-141.9,113.4-133.8c9.7,1.7,18.8,6.7,26.8,14.1C279.1,49.4,294.4,111.4,274.4,170.9z" />
              </defs>
              <clipPath id="SVGID_4_">
                <use xlink:href="#SVGID_3_" style="overflow:visible;" />
              </clipPath>
              <g class="st5">
                <path class="st6" d="M175.2,119.6c-0.4,0-0.9-0.1-1.3-0.2c-2.7-0.7-4.3-3.5-3.5-6.1c13.8-51.5,50.1-81.1,78.1-96.9
          			c2.4-1.4,5.5-0.5,6.8,1.9c1.4,2.4,0.5,5.5-1.9,6.8C227,40,192.8,67.8,180,115.9C179.4,118.1,177.4,119.6,175.2,119.6z" />
              </g>
            </g>
            <path class="st7" d="M143.8,90.7c-2.8,5.9-1.6,14.8,1.3,16.1c2.8,1.3,6.2-5.4,9-11.3s6.6-12,3.8-13.4
          	C155,80.8,146.6,84.8,143.8,90.7z" />
            <path class="st8" d="M116.8,166.4c8.5-4.1,16.1,6.9,9.4,13.5c-13.9,13.6-34.7,30.3-54.4,31.8c-20.3,1.5-30.8-4-36-8.6
          	c-3-2.7-3.5-7.2-1.3-10.6l1.7-2.7c1.2-1.8,3-3.1,5.2-3.6c13.7-3.1,65.7-14.8,75.2-19.6C116.5,166.5,116.7,166.4,116.8,166.4z" />
          </svg>
        </div>
      </div>
    </div>
</body>
            
          
!
            
              $orange: #ff7676;
$pink: #c60f7b;

body {
  background: white;
}
body,
html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
* {
  box-sizing: inherit;
}

#slidePage {
  overflow-x: hidden;
}
.back-btn {
  font-size: 20px;
  z-index: 3;
  color: #797979;
	display:none;
}
.nav {
  z-index: 5;
  display: flex;
  flex-flow: column;
  position: fixed;
  top: 20px;
  left: 20px;
  height: 70vh;
  font-weight: 100;
  pointer-events: none;
  * {
    color: #797979;
    font-size: 20px;
    text-shadow: #000;
    text-decoration: none;
  }
  #active-indicator {
    z-index: 1;
    width: 45px;
    height: 1px;
    position: absolute;
    background: #797979;
    transition: all 1s;
  }
  .side-page-nav {
    z-index: 2;
    margin-top: 100px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    height: 100%;
    a {
      pointer-events: auto;
    }
  }
}
.slides {
  position: relative;
  width: 100%;
  height: 100vh;
  .slide {
    opacity: 0;
    display: flex;
    justify-content: space-between;
    .content-slide {
      width: 50%;
      height: 100%;
      padding: 50px;
      padding-left: 150px;
      background: white;
    }
    .overAll {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: transparent;
      z-index: 3;
      pointer-events: none;
      transform-style: preserve-3d;
      perspective: 250px;
    }
    .svg-container {
      width: 49%;
      display: block;
      padding: 75px;
      opacity: 0;
      height: 100%;
      justify-self: center;
      svg {
        pointer-events: none;
        float: right;
        height: 100%;
      }
    }
    .rotating-number {
      position: absolute;
      z-index: 3;
      left: 42vw;
      top: 35%;
      padding: 30px;
      border-radius: 50%;
      background: #efefef;

      span {
        font-size: 11vw;
      }
    }
    h2 {
      opacity: 0;
      //transform: translate3d(0, -20vw, 0);
    }
    p {
      opacity: 0;
      //transform: translate3d(0, 20vw, 0);
    }
    background-repeat: no-repeat;
    background-size: cover;
    //transition: all 1s ease 0.5s;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    h2 {
      color: $pink;
      margin-top: 20px;
    }
    transform: translate3d(-100vw, 0, 0);
    scroll-behavior: smooth;
    &.active {
      opacity: 1;
      z-index: 1;
      animation: slide-enter 1s 0.2s forwards;
      .content-slide {
        animation: slideLeft-enter 1s 0.2s ease-in forwards;
      }
    }
    &.prev {
      //z-index: 0;
      transform: translate3d(0, 0, 0);
      animation: previousSlide 1.1s;
      h2,
      p {
        animation: prevSlide-content 0.3s;
      }

      &.active {
        transform: translate3d(0, 0, 0);
        z-index: 1;
        animation: slide-enter 1s forwards;
      }
    }
  }

  .slide-1 {
    background-image: url(http://joshs-parallax-journey.surge.sh/red-bg.303c4ab8.svg);
  }
  .slide-2 {
    background-image: url(http://joshs-parallax-journey.surge.sh/yellow-bg.9a35bf86.svg);
  }
  .slide-3 {
    background-image: url(http://joshs-parallax-journey.surge.sh/bluebg.d3663189.svg);
  }
  .slide-4 {
    background-image: url(http://joshs-parallax-journey.surge.sh/purplebg.12f8c1a1.svg);
  }
}

@keyframes previousSlide {
  0% {
    z-index: 1;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  20% {
    opacity: 1;
  }
  99% {
    transform: translate3d(0vw, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(100vw, 0, 0);
    z-index: 0;
    opacity: 0;
  }
}
@keyframes prevSlide-content {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.slide.active h2, .slide.active.prev h2 {
  animation: h2-2 0.3s 1.1s ease-in forwards;
}
.slide.active p, .slide.active.prev p {
  animation: p-2 0.3s 1.1s ease-in forwards;
}
.slide.active .svg-container {
  animation: svgenter 0.3s 1s ease-in forwards;
}
@keyframes svgenter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes p-2 {
  from {
    transform: translate3d(0, 50px, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
@keyframes h2-2 {
  0% {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0vw, 0, 0);
  }
}
@keyframes slideLeft-enter {
  0% {
    width: 0%;
  }

  100% {
    width: 50%;
  }
}

@keyframes slide-enter {
  0% {
    transform: translate3d(-100vw, 0, 0);
  }
  100% {
    transform: translate3d(0vw, 0, 0);
  }
}
            
          
!
            
              
function slideScroll() {
  const slidePage = document.getElementById("slidePage");
  if (slidePage) {
    let isAnimating = false; //variable controls when to execute function on event
    let activeSlide = document.querySelector(".active");
    window.addEventListener("mousewheel", event => scrollOnce(event)); // main eventlistener
    const slides = document.querySelectorAll(".slide");
    const slidesArray = [...slides];
    //if top of slide is at top of window then make that the active slide
    /* slides.forEach(slide => {
    const info = slide.getBoundingClientRect();
    if (info.top <= 100 && info.top >= -100) {
      slide.classList.add("active");
    }
  }); */

    //goes forward in the slides
    function nextSlide(slide) {
      const next = slide.nextElementSibling;

      if (next) {
        //window.scrollTo(0, window.innerHeight * slidesArray.indexOf(next));
        slides.forEach(slide => {
          slide.classList.remove("active");
          slide.classList.remove("prev");
        });
        next.classList.add("active");
        if (!slide.classList.contains("active")) {
          slide.classList.add("prev");
          slide.classList.add("prev");
        }
      }
      navIndicator();
    }
    //goes backwards in the slides
    function prevSlide(slide) {
      const prev = slide.previousElementSibling;
      if (prev) {
        slides.forEach(slide => {
          slide.classList.remove("active");
          slide.classList.remove("prev");
        });
        prev.classList.add("active");
        slide.classList.add("prev");
      }
      navIndicator();
    }

    // blocks the eventlistener funtion from execute more than once 1.5seconds
    function animateTo(fn) {
      fn;
      isAnimating = true;
      setTimeout(() => (isAnimating = false), 1500);
    }
    //actual function that runs on mousewheel
    function scrollOnce(event) {
      const active = document.querySelector(".active");
      const delta = event.wheelDelta;
      if (!isAnimating) {
        //scroll down go to next slide
        if (delta <= 0) {
          animateTo(nextSlide(active));
        } else {
          animateTo(prevSlide(active));
        }
      }
      //normal scroll is blocked
      event.preventDefault();
    }
    function navIndicator() {
      const links = document.querySelectorAll(".side-page-nav a");
      const indicator = document.querySelector("#active-indicator");

      slides.forEach(slide => {
        if (slide.classList.contains("active")) {
          links.forEach(link => {
            if (link.getAttribute("href") === "#" + slide.id) {
              const linkY = link.getBoundingClientRect().y;
              indicator.style.top = `${linkY - 7}px`;
              console.log(link.getAttribute("href"));
            }
          });
        }
      });
    }
    navIndicator();
    const links = document.querySelectorAll(".side-page-nav a");
    links.forEach(link => {
      link.addEventListener("click", event => skipToSlide(event));
    });
    function skipToSlide(event) {
      event.preventDefault();
      slides.forEach(slide => {
        activeSlide.classList.add("prev");
        slide.classList.remove("active");
        if (event.target.getAttribute("href") === "#" + slide.id) {
          slide.classList.add("active");
        }
      });
      navIndicator();
    }
  }
}

window.addEventListener("onload", slideScroll());
function hoverSwivel() {
  const slidePage = document.getElementById("slidePage");
  if (slidePage) {
    const containers = document.querySelectorAll(".slide");
    const walk = 55;
    const eachContainer = containers.forEach(container => {
      //const swivelWrap = container.querySelector('.overAll')
      const swiveler = container.querySelector(".rotating-number");
      function swivel(event) {
        const width = container.offsetWidth;
        const height = container.offsetHeight;

        let x = event.offsetX;
        let y = event.offsetY;

        if (this !== event.target) {
          x = x + event.target.offsetLeft;
          y = y + event.target.offsetTop;
        }
        const xWalk = Math.round((x / width) * walk - walk / 2);
        const yWalk = Math.round((y / height) * walk - walk / 2);

        swiveler.style.transform = `rotate3d(0,1,0,${xWalk}deg) translate3d(0,${yWalk /
          2}px,0)`;
      }
      container.addEventListener("mousemove", event => swivel(event));
    });
  }
}
window.addEventListener("onload", hoverSwivel(event));

            
          
!
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