Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <link href="https://fonts.googleapis.com/css2?family=Dosis&family=Montserrat:wght@900&display=swap" rel="stylesheet">

<div class="stockify">

  <!--Logo & Nav-->
  <h2 class="logo">Stockify.</h2>
  <nav>
    <div class="hamburger">
      <a class="main-nav-toggle"><i>Menu</i></a>
    </div>
    <ul class="menu">
      <li class="about"><a href="#about">About us</a></li>
      <li class="how"><a href="#works">How it works</a></li>
      <li class="exper"><a href="#experience">Experiences</a></li>
      <li class="explore"><a href="#explore">Explore</a></li>
    </ul>
  </nav>
  <!--Logo & Nav-->
  <!--scroll slides-->
  <div class="outer-wrapper">
    <div class="wrapper">
      <!--intro-->
      <div class="slide intro">
        <div class="intro__section">
          <span class="intro__section__copy">
            However BIG or small
            the project maybe
            we have got you
            stocked and ready
            to impress<span>.</span>
          </span>
          <div class="mouse">
            <div class="scroll">
              <div class="scroll__mouse"></div>
            </div>
            <span class="scroll--copy">
              Scroll down<br> to explore more.
            </span>
          </div>
        </div>
      </div>
      <!--intro-->
      <!--About-->
      <div class="slide two" id="about">
        <span class="two--title">
          About us. About us. About us.
        </span>
        <p class="two--copy">We hand-select every photo and accept only the best, so that no matter what you need—you’ll find exactly what you’re looking for on Unsplash.</p>
        <div class="two--img pos1"></div>
        <div class="two--img pos2"> </div>
      </div>
      <!--About-->
      <!--Explore-->
      <div class="slide three" id="experience">
        <a class="overlay" href="https://codepen.io/jacobdelaney92/full/jObGwLB"></a>
        <span class="explore-title"></span>
        <div class="explore-stock">
          <span class="title-letter">S</span>
          <span class="title-letter">T</span>
          <span class="title-letter">O</span>
          <span class="title-letter">C</span>
          <span class="title-letter">K</span>
          <span class="title-letter">I</span>
          <span class="title-letter">F</span>
          <span class="title-letter">Y</span>
          <span class="title-letter">.</span>
          <p class="explore-sub">Click here to find out more</p>
        </div>
      </div>
      <!--Explore-->

      <div class="slide four" id="works">
        <div class="history-copy">
          Founded in 2013 as a humble Tumblr blog, Unsplash has grown into an industry-leading visual community. It’s become a source of inspiration for everyone from award-winning writers like Deepak Chopra to industry-titans like Apple, and millions of creators worldwide.
        </div>
        <div class="history">
          <div class="history-grid">
            <div> <img class="img-0" src="https://images.unsplash.com/photo-1543364195-077a16c30ff3?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60" alt="">
              <div class="info i0">i</div>
            </div>
            <div> <img class="img-1" src="https://images.unsplash.com/photo-1561338816-dcaaaacc7cbd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60" alt="">
              <div class="info i1">i</div>
            </div>
            <div> <img class="img-2" src="https://images.unsplash.com/photo-1565178843646-fe93224379b6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60" alt="">
              <div class="info i2">i</div>
            </div>
            <div> <img class="img-3" src="https://images.unsplash.com/photo-1586294197390-8952d2d0ec1f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60" alt="">
              <div class="info i3">i</div>
            </div>

          </div>
        </div>

      </div>
      <div class="slide five" id="explore">
        <div class="accordian">
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Can I use this in my work?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                no, this is a practice site using photos from unsplash. Check them out they have great content.
              </p>
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Who made this totaly rad website?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                Me!
              </p>
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Do you have a twitter?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                Yes I do here is the link.
              </p>
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Can I use this in my work?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat voluptatibus voluptatem, impedit at iste assumenda quo necessitatibus inventore, alias facilis consequuntur et ipsa odio labore placeat laudantium sint ea. Autem.
              </p>
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Do you have a github?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                Yes I do here is the link.
              </p>
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Are you looking for a job?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                I am actualy I have just over a years experince as a front end developer.
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>How can I sign up to unsplash?</h3>
               <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                click here to sign up.
              </p>
            </div>
          </div>
          <div class="accordian--item">
            <div class="accordian--item__trigger">
              <h3>Do you have a linked in?</h3>
              <svg class="x"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 60.364 60.364" style="enable-background:new 0 0 60.364 60.364; fill:#1c2042;" xml:space="preserve">
<g>
	<path d="M54.454,23.18l-18.609-0.002L35.844,5.91C35.845,2.646,33.198,0,29.934,0c-3.263,0-5.909,2.646-5.909,5.91v17.269   L5.91,23.178C2.646,23.179,0,25.825,0,29.088c0.002,3.264,2.646,5.909,5.91,5.909h18.115v19.457c0,3.267,2.646,5.91,5.91,5.91   c3.264,0,5.909-2.646,5.91-5.908V34.997h18.611c3.262,0,5.908-2.645,5.908-5.907C60.367,25.824,57.718,23.178,54.454,23.18z"/>
</g>
</svg>
            </div>
            <div class="accordian--content">
              <p class="accordian--content__text">
                yeah I do, here is the link.
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /*COLOURS*/
$stockify-white: #ffffff;
$stockify-navy: #1c2042;
$stockify-pink: #e8a4a5;
/*COLOURS*/

/*MIXINS*/
@mixin pos($type, $top, $left, $right, $btm, $index) {
  position: $type;
  top: $top;
  left: $left;
  right: $right;
  bottom: $btm;
  z-index: $index;
}
@mixin flex($direct,$align,$justify){
display:flex;
flex-direction:$direct;
justify-content:$justify;
align-items:$align;
}
/*MIXINS*/

/*UPDATES*/
* {
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 145;
}
/*UPDATES*/
/*ANIMATION*/
@keyframes mouseSlide {
  50% {
    transform: translateY(15px);
    height: 13px;
  }
  100% {
    transform: translateY(0%);
    height: 8px;
  }
}
/*ANIMATION*/
.stockify {
  .logo {
    color: $stockify-white;
    @include pos(fixed, 2vh, 2vw, auto, auto, 5);
    text-shadow: 0.1em 0.1em rgba(0, 0, 0, 0.3);
  }
  nav {
    color:$stockify-navy;
    @include pos(fixed,0, auto,0, auto, 50);
    .hamburger {
      @include pos(relative,auto, auto,auto, auto, 5);
      a.main-nav-toggle {
        width: 40px;
        height: 30px;
        display: block;
        @include pos(absolute, 5vh, auto, 3vw, auto, 0);
        &:after {
          content: "";
          width: 100%;
          height: 0;
          border-bottom: 4px solid #ffffff;
          transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
          @include pos(absolute,100%,0,0, auto, 0);
        }
        &:before {
          content: "";
          width: 100%;
          height: 0;
          border-bottom: 4px solid #ffffff;
          transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
          @include pos(absolute,0,0,0, auto, 0);
        }
        i {
          height: 4px;
          width: 100%;
          display: block;
          text-indent: 100%;
          overflow: hidden;
          white-space: nowrap;
          background-color: #ffffff;
          @include pos(absolute,50%,auto,auto, auto, 0);
          transition: all 0.6s cubic-bezier(0.87, 0, 0.13, 1);
        }
      }
      a.main-nav-toggle.active-menu {
        &:after {
          transform: rotate(-45deg);
          transform-origin: center;
          top: 50%;
          border-bottom: 4px solid #1c2042;
        }
        &:before {
          transform: rotate(45deg);
          transform-origin: center;
          top: 50%;
          border-bottom: 4px solid #1c2042;
        }
        i {
          opacity: 0;
        }
      }
    }
    ul {
      width: 0;
      height: 100vh;
      @include flex(column,none,center);
      list-style: none;
      text-align: center;
      box-sizing: border-box;
      background: rgba(255, 255, 255, 0.9);
      transform-origin: top left;
      transform: translateX(25vw);
      transition: all 0.3s cubic-bezier(0.87, 0, 0.13, 1);
      @media (min-width: 768px) {
        text-align: left;
        padding-left: 10%;
      }
      li {
        padding: 5% 0;
        font-size: 2rem;
        font-weight: bold;
        a {
          color: $stockify-navy;
          letter-spacing: 0.1em;
          text-decoration: unset;
          transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
          padding: 2%;
          &:hover {
            background-color: $stockify-pink;
            color: $stockify-white;
          }
        }
      }
    }
  }
  .slide-menu {
    width: 100vw;
    transform: translateX(0);
    @media (min-width: 766px) {
      width: 50vw;
    }
    @media (min-width: 1024px) {
      width: 25vw;
    }
  }
  .outer-wrapper {
    width: 100vw;
    @media (min-width: 768px) {
      width: 100vh;
      height: 100vw;
      transform: rotate(-90deg) translateX(-100vh);
      transform-origin: top left;
      overflow-y: scroll;
      overflow-x: hidden;
      position: absolute;
      scrollbar-width: none;
      -ms-overflow-style: none;
      ::-webkit-scrollbar {
        display: none;
      }
    }
    .wrapper {
      display: flex;
      flex-direction: column;
      width: 100vw;
      @media (min-width: 768px) {
        transform: rotate(90deg) translateY(-100vh);
        transform-origin: top left;
        width: 505vw;
        flex-direction: row;
      }
      .slide {
        width: 100vw;
        height: 100vh;
        position: relative;
      }
      .intro {
        background-color: #f9f0f1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url("https://images.unsplash.com/photo-1535350356005-fd52b3b524fb?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80");
        @media (min-width: 768px) {
          background-attachment: fixed;
        }
        &__section {
          width: 95%;
          text-align: center;
          position: absolute;
          top: 50%;
          right: 50%;
          transform: translate(50%, -50%);
          display: flex;
          flex-direction: column;
          justify-content: center;
          @media (min-width: 766px) {
            width: 70%;
            justify-content: none;
          }
          @media (min-width: 1440px) {
            text-align: left;

            width: 50%;
          }
          &__copy {
            font-family: "Montserrat", sans-serif;
            z-index: 50;
            color: #1c2042;
            font-size: 2rem;
            @media (min-width: 768px) {
              font-size: 2.7rem;
              letter-spacing: 0.1em;
              line-height: 1.4;
            }
            span {
              color: #e8a4a5;
            }
          }
          .mouse {
            margin-top: 10%;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            @media (min-width: 768px) {
              margin-top: 5%;
            }
            .scroll {
              width: 30px;
              height: 55px;
              color: red;
              border: 3px solid #e8a4a5;
              border-radius: 35px;
              z-index: 5;
              position: relative;
              &__mouse {
                top: 10%;
                width: 8px;
                height: 13px;
                background-color: #e8a4a5;
                z-index: 35;
                border-radius: 10px;
                position: absolute;
                left: 0;
                right: 0;
                margin: 0 auto;
                animation-duration: 3s;
                animation-name: mouseSlide;
                animation-iteration-count: infinite;
              }
              &--copy {
                font-family: "Montserrat", sans-serif;
                margin-left: 2%;
                font-weight: bold;
              }
            }
          }
        }
      }
      .two {
        background-color: #81c2ab;
        overflow: hidden;
        @media (min-width: 768px) {
        }
        &--title {
          display: block;
          width: 100%;
          -webkit-text-stroke-width: 2px;
          -webkit-text-stroke-color: white;
          color: transparent;
          text-transform: uppercase;
          white-space: nowrap;
          position: absolute;
          z-index: 3;
          transform: rotate(90deg);
          bottom: 37%;
          left: 41%;
          font-size: 4rem;
          @media (min-width: 768px) {
            bottom: 22%;
            left: -25%;
            transform: rotate(0deg);
            font-size: 7rem;
          }
        }
        &--copy {
          color: #046f59;
          position: absolute;
          font-weight: bold;
          position: absolute;
          bottom: auto;
          font-size: 1.2rem;
          width: 85vw;
          top: 10%;
          left: 5%;
          transform: rotate(-15deg);
          transform-origin: top left;
          transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
          @media (min-width: 766px) {
            right: 5%;
            top: 15%;
            bottom: auto;
            width: 55%;
            font-size: 2rem;
            left: auto;
          }
          @media (min-width: 1024px) {
            right: 20%;
            width: 40vw;
            bottom: 45%;
          }
        }
        &--img {
          position: absolute;
          width: 0;
          z-index: 0;
          background-size: cover;
          background-repeat: no-repeat;
          background-position: bottom;
          transition: width 1s cubic-bezier(0.87, 0, 0.13, 1);
        }
        .pos1 {
          height: 55%;
          top: auto;
          bottom: 5%;
          left: 5%;
          background-image: url("https://images.unsplash.com/photo-1491147334573-44cbb4602074?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=934&q=80");
          @media (min-width: 766px) {
            height: 50%;
            bottom: 25%;
          }
          @media (min-width: 1024px) {
            height: 100%;
            top: 25%;
            left: 5%;
          }
        }
        .pos2 {
          @media (min-width: 766px) {
            height: 45%;
            bottom: 5%;
            right: 5%;
            background-image: url("https://images.unsplash.com/photo-1547585129-30a2ef26f034?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1100&q=80");
          }
          @media (min-width: 1440px) {
          }
        }
        .slide-image {
          width: 85vw;
          @media (min-width: 766px) {
            width: 25%;
          }
          &__ipad {
            width: 55%;
          }
        }
        .rot-copy {
          transform: rotate(0deg);
        }
      }
      .three {
        background-color: #ffffff;
        transition: background-color 0.1s cubic-bezier(1, 0, 0.13, 1);
        padding-left: 1%;
        overflow: hidden;
        cursor: pointer;
        .explore-title {
          -webkit-text-stroke-width: 2px;
          -webkit-text-stroke-color: #f26825;
          color: transparent;
          text-transform: uppercase;
          font-size: 8rem;
          width: 25vw;
          line-height: 0.7;
          position: absolute;
          transform: rotate(90deg);
          top: 5%;
          left: 5%;
          @media (min-width: 768px) {
            position: relative;
            transform: rotate(0deg);
            font-size: 6rem;
            top: 0;
          }
        }
        .explore-stock {
          position: absolute;
          top: 50%;
          left: auto;
          right: 50%;
          width: 100%;
          display: flex;
          flex-direction: row;
          flex-wrap: wrap;
          justify-content: center;
          color: #ffffff;
          font-size: 3.5rem;
          transform: translate(50%, -50%);
          @media (min-width: 766px) {
            font-size: 7rem;
            width: 80%;
            justify-content: center;
          }
          @media (min-width: 1024px) {
            font-size: 9rem;
            width: 60%;
            justify-content: flex-end;
          }
          .title-letter {
            transform: translateY(-100px);
            transition-property: transform;
            transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
          }
          .wiggle {
            transform: translateY(0px);
          }
          span {
            &:nth-child(1) {
              transition-duration: 0.2s;
            }
            &:nth-child(2) {
              transition-duration: 0.4s;
            }
            &:nth-child(3) {
              transition-duration: 0.6s;
            }
            &:nth-child(4) {
              transition-duration: 0.8s;
            }
            &:nth-child(5) {
              transition-duration: 1s;
            }
            &:nth-child(6) {
              transition-duration: 1.2s;
            }
            &:nth-child(7) {
              transition-duration: 1.4s;
            }
            &:nth-child(8) {
              transition-duration: 1.6s;
            }
            &:nth-child(9) {
              transition-duration: 1.8s;
            }
          }
          .explore-sub {
            margin: 0;
            width: 100%;
            font-size: 1.2rem;
            text-align: center;
            color: #f26825;
            opacity: 0;
            animation-delay: 2.5s;
            transition: opacity 1s cubic-bezier(0.87, 0, 0.13, 1);
            @media (min-width: 766px) {
              width: 80%;
              font-size: 2rem;
              margin: 0;
              text-align: right;
              white-space: nowrap;
            }
            @media (min-width: 1024px) {
              width: 45%;
            }
          }
        }
      }
      .bg-color {
        background-color: #fd9436;
      }
      .four {
        display: flex;
        flex-direction: column-reverse;
        background-color: #d6e3f9;
        align-items: center;
        padding: 40% 0 0 0;
        @media (min-width: 766px) {
          padding: 0;
        }
        @media (min-width: 1024px) {
          justify-content: space-evenly;
          flex-direction: row;
        }
        .history-copy {
          color: #1c203e;
          font-size: 1.1rem;
          box-sizing: border-box;
          padding: 5%;
          width: 100%;
          text-align: justify;
          font-weight: bold;
          transform: rotate(0deg);
          line-height: 1.5em;
          transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
          @media (min-width: 766px) {
            width: 65%;
            padding: 5% 0;
          }
          @media (min-width: 1024px) {
            width: 30%;
            font-size: 1.5rem;
          }
        }
        .history {
          width: 100%;
          @media (min-width: 766px) {
            width: 70%;
          }
          @media (min-width: 1024px) {
            width: 45%;
          }
          .history-grid {
            display: flex;
            flex-direction: row;
            width: 100%;
            flex-wrap: wrap;
            justify-content: space-evenly;
            div {
              width: 45%;
              position: relative;
              img {
                width: 100%;
                margin: 2% 0;
                cursor: pointer;
                border-radius: 5%;
              }
              img:hover {
                opacity: 0.5;
              }
              img:hover ~ .info {
                opacity: 1;
              }
              .info {
                width: 35px;
                height: 35px;
                border-radius: 50%;
                border: 2px solid #1c203e;
                color: #1c203e;
                text-align: center;
                line-height: 2.3em;
                position: absolute;
                left: 0;
                right: 0;
                margin: 0 auto;
                bottom: 45%;
                opacity: 0;
                transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
              }
            }
          }
        }
      }
      .five {
        display: flex;
        color: $stockify-navy;
        flex-direction: column;
        justify-content: center;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #fde596;
        padding: 5% 0;
        @media (min-width: 766px) {
          padding: 0;
        }
        .accordian {
          display: flex;
          flex-direction: column;
          align-items: center;
          width: 100%;
          &--item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            @media (min-width: 766pxpx) {
              width: 50%;
            }
            &__trigger {
              display: flex;
              align-items: center;
              justify-content: space-between;
              width: 90%;
              margin: 3% auto;
              @media (min-width: 766px) {
                margin: 1% auto;
              }
              @media (min-width: 1024px) {
                width: 50%;
              }
              h3 {
                color: $stockify-navy;
              }
              .x {
                width: 25px;
                transform: rotate(0deg);
                transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1);
              }
              .rotate-cross {
                transform: rotate(-43deg);
              }
            }
            .accordian--content {
              max-height: 0;
              color: white;
              overflow: hidden;
              transform-origin: top;
              transition: max-height 0.6s cubic-bezier(0.87, 0, 0.13, 1);
              width: 75%;
              box-sizing: border-box;
              font-family: sans-serif;
              line-height: 1.5rem;
              @media(min-width:1024px){
                    width: 50%;
              }
            }
            .slide-down {
              max-height: 500px;
            }
          }
        }
      }
    }
  }
}

              
            
!

JS

              
                var viewportWidth = window.innerWidth || document.documentElement.clientWidth;

document
  .querySelector(".main-nav-toggle")
  .addEventListener("click", validation);

function validation(element) {
  element.preventDefault();
  let menu = document.querySelector(".menu");
  if (this.classList.contains("active-menu")) {
    this.classList.remove("active-menu");
    console.log(menu);
    menu.classList.remove("slide-menu");
  } else {
    this.classList.add("active-menu");
    menu.classList.add("slide-menu");
  }
}

if (!!window.IntersectionObserver) {
  let el = document.querySelector(".two");
  let imgs = document.querySelectorAll(".two--img");
  let copy = document.querySelector(".two--copy");
  let observer = new IntersectionObserver(
    (entries, observer) => {
      entries.forEach((entry) => {
        if (entry.isIntersecting) {
          imgs.forEach((val) => {
            val.classList.add("slide-image");
            if(val.classList.contains("pos2")){
              val.classList.add("slide-image__ipad");      
            }
          });
          copy.classList.add("rot-copy");
        } else if (!entry.isIntersecting) {
          imgs.forEach((val) => {
            val.classList.remove("slide-image");
            if(val.classList.contains("pos2")){
              val.classList.remove("slide-image__ipad");      
            }
          });
          copy.classList.remove("rot-copy");
        }
      });
    },
    { threshold: 0.75 }
  );
  observer.observe(el);
}

/*Duplicate Text*/
let exp = document.querySelector(".explore-title");
if (viewportWidth > 766) {
  for (var i = 0; i < 15; i++) {
    let text = document.createTextNode("Explore");
    let line = document.createElement("br");
    exp.appendChild(text);
    exp.appendChild(line);
  }
} else {
  let text = document.createTextNode("Explore");
  exp.appendChild(text);
}
/*Duplicate Text*/

if (!!window.IntersectionObserver) {
  let el = document.querySelector(".three");
  let letter = document.querySelectorAll(".title-letter");
  let observer = new IntersectionObserver(
    (entries, observer) => {
      entries.forEach((entry) => {
        if (entry.isIntersecting) {
          el.classList.add("bg-color");
          letter.forEach((item) => {
            item.classList.add("wiggle");
          });
          document.querySelector(".explore-sub").style.opacity = 1;
        } else if (!entry.isIntersecting) {
          letter.forEach((item) => {
            item.classList.remove("wiggle");
          });
        }
      });
    },
    { threshold: 0.75 }
  );
  observer.observe(el);
}

// for history

// add title
let history = document.querySelector(".four");
document.querySelector(".history-grid").addEventListener("click", showBio);

function showBio(el) {
  let select = el.target;
  console.log(select);
  let bio = document.querySelector(".history-copy");
  let bioArray = [
    "Founded in 2013 as a humble Tumblr blog, Unsplash has grown into an industry-leading visual community. It’s become a source of inspiration for everyone from award-winning writers like Deepak Chopra to industry-titans like Apple, and millions of creators worldwide.",
    "The Unsplash library enters new territory, thanks to the New York Public Library’s new account showcasing powerful photography from important moments in history.",
    "The Unsplash ecosystem is pushing the impact of photography further than ever before. Our aim is to make photography a universally accessible art form. The purpose of raising this investment is to build a new type of economic future for photography when it is set free.",
    "A simple, free app to turn your Mac desktop background into a rotating gallery of stunning HD photography from the Unsplash community."
  ];
  let num = select.classList.value.slice(-1);
  console.log(num);
  if (num !== "d") {
    bio.innerText = "";
    bio.innerText = bioArray[num];
  }
}

let rotX = document.querySelectorAll(".x");
let cont = document.querySelectorAll(".accordian--content");

for (let z = 0; z < rotX.length; z++) {
  rotX[z].addEventListener("click", rotCross);

  function rotCross(item) {
    if (this.classList.contains("rotate-cross")) {
      rotX[z].classList.remove("rotate-cross");
      cont[z].classList.remove("slide-down");
    } else if (!this.classList.contains("rotate-cross")) {
      for (let x = 0; x < rotX.length; x++) {
        if (rotX[x].classList.contains("rotate-cross")) {
          rotX[x].classList.remove("rotate-cross");
          cont[x].classList.remove("slide-down");
        }
      }
      this.classList.add("rotate-cross");
      cont[z].classList.add("slide-down");
    }
  }
}

//click scroll to section on page
// make the click section more obvious

document.querySelector("nav ul li a").scrollIntoView({
  behavior: "smooth"
});



// change copy for ipad first page scroll left/right
              
            
!
999px

Console