cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="app__background">
  
  <div class="app__bg-square app__bg-square--top"></div>
  <div class="app__bg-square app__bg-square--right"></div>
  <div class="app__bg-square app__bg-square--bottom"></div>
  <div class="app__bg-square app__bg-square--left"></div>
  
  <div class="app__container">
    <div class="app__menu-container">
      <div class="app__menu">
        <div class="app__menu-close">
          <span></span><span></span>
        </div>
        <div class="app__menu-links">
          <a href="" class="app__menu-link">Home</a>
          <a href="" class="app__menu-link">Designers</a>
          <a href="" class="app__menu-link">Products</a>
          <a href="" class="app__menu-link">Contact</a>
        </div>
      </div>
      <div class="app__menu app__menu--after"></div>
    </div>
    <div class="app__container-slider">
    <div class="carousel-cell">
      <div class="app__hero app__hero--bg" style="background-image: url('https://unsplash.it/600/540')">
        <div class="app__nav">
        <div class="app__logo">
          <svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
            <g fill="#D0D0D0" fill-rule="evenodd" font-weight="bold" font-family="HelveticaLTStd-Bold, Helvetica LT Std" font-size="26.379">
              <text transform="translate(0 -3.5)">
                <tspan x="0" y="19">a</tspan>
              </text>
              <text transform="translate(0 -3.5)">
                <tspan x="15.5" y="19">e</tspan>
              </text>
            </g>
          </svg>
        </div>
        <div class="app__menu-toggle">
          <span></span>
          <span></span>
          <span></span>
        </div>
      </div>
      </div>
      <div class="app__body accordion">
        <h1 class="app__title">
          Plan it with passion, or do not do it at all
        </h1>
        <div class="app__accordions">
          <div class="app__accordion">
            <div class="accordion__head">
              <div class="accordion__title">Design to us</div>
              <div class="accordion__icon"></div>
            </div>
            <div class="accordion__content">
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, iste?</p>
            </div>
          </div>
          <div class="app__accordion">
            <div class="accordion__head">
              <div class="accordion__title">How we started</div>
              <div class="accordion__icon"></div>
            </div>
            <div class="accordion__content">
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique, distinctio magni autem. Ducimus fuga, nihil praesentium!</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="carousel-cell">
      <div class="app__nav">
        <div class="app__logo">
          <svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
            <g fill="#D0D0D0" fill-rule="evenodd" font-weight="bold" font-family="HelveticaLTStd-Bold, Helvetica LT Std" font-size="26.379">
              <text transform="translate(0 -3.5)">
                <tspan x="0" y="19">a</tspan>
              </text>
              <text transform="translate(0 -3.5)">
                <tspan x="15.5" y="19">e</tspan>
              </text>
            </g>
          </svg>
        </div>
        <div class="app__menu-toggle">
          <span></span>
          <span></span>
          <span></span>
        </div>
      </div>
      <div class="app__hero">
        <div class="app__hero-content">
          <h3 class="app__subtitle">/ Story of the week</h3>
          <h1 class="app__title">A brief story of italian industrial design</h1>
          <div class="app__cta">
            Let's have a read
            <span class="app__icon">
              <svg xmlns="http://www.w3.org/2000/svg" width="12" height="10" viewBox="0 0 12 10">
                <path fill="#9B9B9B" fill-rule="evenodd" d="M11.902 4.464c.05.062.083.134.09.217 0 .009.007.016.006.024l.002.006-.001.007c0 .005-.003.01-.003.014-.005.102-.046.193-.11.264-.005.006-.003.015-.008.021-.006.006-.015.004-.021.009-.006.005-.015.004-.021.009L7.143 9.3c-.164.164-.429.164-.592 0-.164-.164-.164-.428 0-.591l3.927-3.57H.428C.192 5.14 0 4.947 0 4.711s.192-.428.428-.428h10.05L6.55.713c-.164-.163-.164-.427 0-.59.163-.164.428-.164.592 0l4.67 4.244c.006.005.01.013.016.018.015.012.035.007.048.02.017.017.012.041.025.06z"/>
              </svg>
            </span>
          </div>
        </div>
      </div>
      <div class="app__boxes">
        <div class="app__box" style="background-image: url('https://unsplash.it/600/520')"></div>
        <div class="app__box">
          <div class="app__box-content">
            <div class="app__box-title">Intern</div>
            <div class="app__box-text">
              Examples of cool design workspaces you may like
            </div>
          </div>
        </div>
        <div class="app__box">
        <div class="app__box-content">
            <div class="app__box-title">Industrial design</div>
            <div class="app__box-text">
              Cool objects you can’t miss if your have an iPhone
            </div>
          </div></div>
        <div class="app__box" style="background-image: url(https://unsplash.it/600/530)"></div>
      </div>
    </div>
    <div class="carousel-cell">
      <div class="app__nav">
        <div class="app__logo">
          <svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16">
            <g fill="#D0D0D0" fill-rule="evenodd" font-weight="bold" font-family="HelveticaLTStd-Bold, Helvetica LT Std" font-size="26.379">
              <text transform="translate(0 -3.5)">
                <tspan x="0" y="19">a</tspan>
              </text>
              <text transform="translate(0 -3.5)">
                <tspan x="15.5" y="19">e</tspan>
              </text>
            </g>
          </svg>
        </div>
        <div class="app__menu-toggle">
          <span></span>
          <span></span>
          <span></span>
        </div>
      </div>
      <div class="app__hero">
        <div class="app__hero-content">
          <h1 class="app__title">The principles minimal design brings along</h1>
          <p class="app__text">
            Dieter Rams is a famous industrial designer became an icon and key figure on the field due to his great work at Braun
          </p>
        </div>
        <div class="app__designer-slider">
          <div class="carousel-cell">
            <div class="app__designer" style="background-image: url(https://unsplash.it/600/400);"></div>
          </div>
          <div class="carousel-cell">
            <div class="app__designer" style="background-image: url(https://unsplash.it/600/440);"></div>
          </div>
          <div class="carousel-cell">
            <div class="app__designer" style="background-image: url(https://unsplash.it/600/450);"></div>
          </div>
        </div>
      </div>
      <div class="app__body">
        <p class="app__text">
          The man became famous between all the design experts from all around the world for his essential and minimal style. <br />
          Jony Ive himself, actual Apple head of design said Raims is his primarly inspiration source.
        </p>
      </div>
    </div>
    </div>
  </div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');

$tuna: #333335;
$white: #ffffff;
$woodsmoke: #0f0f12;
$bon-jour: #f0eff0;
$lola: #e9e8e9;
$alto: #d1d1d1;
$monte-carlo: #83ccbd;
$jordy: #87b2f3;

$app-width: 332px;
$app-height: 582px;

body {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  background-color: $bon-jour;
  color: $alto;
}

.app__background {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app__bg-square {
  position: absolute;
  width: 50%;
  height: 50vh;
  z-index: 2;
  &--top, &--right {
    top: 0;
  }
  &--bottom, &--left {
    bottom: 0;
  }
  &--top, &--left {
    left: 0;
  }
  &--right, &--bottom {
    left: 50%;
  }
  &--right, &--left {
    background-color: $lola;
    z-index: 3;
  }
  &--top, &--bottom {
    background-color: $bon-jour;
  }
}

.app__container-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.app__menu-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: all 0.1s ease 0.8s;
  z-index: -1;
  .is-menu-open & {
    z-index: 101;
    transition: all 0.1s;
  }
}

.app__menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate(-100%);
  background-color: $tuna;
  transition: transform 0.45s cubic-bezier(0.694,  0.048, 0.335, 1.000) 0.3s;
  z-index: 101;
  &--after {
    background-color: $woodsmoke;
    transition-delay: 0.15s;
    z-index: 100;
  }
  .is-menu-open & {
    transform: translate(0);
  }
}

.app__menu-close {
  cursor: pointer;
  position: absolute;
  top: 45px;
  right: 25px;
  width: 25px;
  height: 25px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease 0s;
  span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    overflow: hidden;
    transform: rotate(45deg);
    &:after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 0;
      height: 100%;
      background-color: $jordy;
      transition: all 0.4s cubic-bezier(0.694,  0.048, 0.335, 1.000);
    }
    &:last-child {
      left: auto;
      right: 0;
      transform: rotate(-45deg);
    }
  }
  &:hover {
    span:after {
      width: 100%;
    }
  }
  .is-menu-open & {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.9s;
  }
}

.app__menu-links {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  z-index: 101;
}

.app__menu-link {
  color: white;
  display: block;
  margin: 25px 0;
  font-size: 24px;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.4s ease 0.8s;
  &:nth-child(2) {
    transition-delay: 0.95s;
  }
  &:nth-child(3) {
    transition-delay: 1.1s;
  }
  &:last-child {
    transition-delay: 1.3s;
  }
  .is-menu-open & {
    opacity: 1;
    transform: translateY(0);
  }
}

.app__container {
  width: $app-width;
  height: $app-height;
  background-color: white;
  position: relative;
  top: -20px;
  box-shadow: 0 13px 23px 4px rgba(black, 0.1);
  transition: all 0.35s;
  z-index: 10;
  .carousel-cell {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}

.flickity-prev-next-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 13px 23px 4px rgba(black, 0.1);
  transition: all 0.3s;
}

.flickity-prev-next-button:hover {
  box-shadow: 0 11px 26px 4px rgba(black, 0.2);
  transform: translateY(-50%) scale(0.95);
}

.flickity-prev-next-button:active {
  opacity: 1;
  box-shadow: 0 11px 26px 4px rgba(black, 0.3);
  transform: translateY(-50%) scale(0.85);
}

.flickity-prev-next-button .arrow {
  fill: #333;
}
.flickity-prev-next-button.no-svg {
  color: #333;
}

.flickity-prev-next-button.previous {
  left: -80px;
}
.flickity-prev-next-button.next {
  right: -80px;
}

.flickity-prev-next-button svg {
  left: 30%;
  top: 30%;
  width: 40%;
  height: 40%;
}

.app__nav {
  width: 100%;
  position: absolute;
  top: 45px;
  left: 0;
  @include clearfix();
}

.app__logo {
  float: left;
  margin-left: 30px;
}

.app__menu-toggle {
  float: right;
  cursor: pointer;
  margin-right: 30px;
  width: 20px;
  height: 15px;
  position: relative;
  span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: $alto;
    transition: all 0.3s;
    &:nth-child(2) {
      top: 6px;
    }
    &:last-child {
      top: auto;
      bottom: 1px;
    }
  }
  &:hover {
    span {
      &:first-child {
        transform: translateY(-2px);
      }
      &:last-child {
        transform: translateY(2px);
      }
    }
  }
}

.app__hero {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  &--bg {
    height: 275px;
    background-color: $alto;
  }
}

.app__hero-content {
  padding-top: 117px;
  margin: 0 30px;
}

.app__title {
  color: $woodsmoke;
  font-size: 24px;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.05em;
  line-height: 39px;
  margin-top: 18px;
  margin-bottom: 0;
  + .app__text {
    margin-top: 18px;
  }
}

.app__subtitle {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.app__text {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.07em;
  line-height: 20px;
  margin-bottom: 18px;
}

.app__cta {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  margin-top: 18px;
}

.app__icon {
  display: inline-block;
  position: relative;
  top: 1px;
  margin-left: 7px;
  svg path {
    fill: #a8a8a8;
  }
}

.app__boxes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  @include clearfix();
}

.app__box {
  width: 50%;
  height: 123px;
  float: left;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  &:first-child {
    background-color: #F8E3E3;
  }
  &:nth-child(2) {
    background-color: $monte-carlo;
  }
  &:nth-child(3) {
    background-color: $jordy;
  }
  &:last-child {
    background-color: #E9EDEE;
  }
}

.app__box-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 122px;
}

.app__box-title {
  color: white;
  opacity: 0.61;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 11px;
}

.app__box-text {
  color: white;
  line-height: 15px;
  letter-spacing: 0.1em;
  font-weight: 300;
  font-size: 12px;
}

.app__designer-slider {
  margin-top: 25px;
  margin-left: 30px;
  .carousel-cell {
    width: auto;
    height: auto;
    position: relative;
    z-index: 9999;
  }
  .app__designer {
    width: 155px;
    height: 100px;
    margin-right: 15px;
    background-color: $alto;
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 9999;
  }
}

.app__body {
  padding: 0 30px;
  margin-top: 25px;
  &.accordion {
    .app__title {
      padding-right: 10px;
    }
  }
}

.app__hero--bg {
  .app__logo {
    svg g {
      fill: white;
    }
  }
  .app__menu-toggle {
    span {
      background: white;
    }
  }
}

.app__accordions {
  margin-top: 22px;
}

.app__accordion {
  &:first-child {
    border-top: 1px solid #dbdbe0;
  }
  .accordion__head {
    padding: 18px 0;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #dbdbe0;
    transition: all 0.25s;
    @include clearfix();
  }
  .accordion__title {
    float: left;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: $woodsmoke;
  }
  .accordion__icon {
    float: right;
    position: relative;
    &:before, &:after {
      content: "";
      display: block;
      position: absolute;
      top: 0.25em;
      right: 0.25em;
      width: 2px;
      height: 8px;
      background-color: #515153;
      transition: all 0.3s;
    }
    &:after {
      transform: rotate(-90deg);
    }
  }
  .accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.8s;
    p {
      padding-top: 4px;
      margin: 0;
      font-size: 12px;
      font-weight: 300;
      letter-spacing: 0.07em;
      line-height: 20px;
    }
  }
  &.is-active {
    .accordion__content {
      max-height: 300px;
    }
    .accordion__head {
      border-color: white;
    }
    .accordion__icon {
      &:before {
        transform: rotate(-90deg);
      }
    }
  }
}


// Animations related
.app__bg-square {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.35s;
  &--right {
    transition-delay: 0.15s;
  }
  &--bottom {
    transition-delay: 0.3s;
  }
  &--left {
    transition-delay: 0.45s;
  }
}
.app__container {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.35s ease 0.85s;
}

.is-loaded {
  .app__container, .app__bg-square {
    opacity: 1;
    transform: scale(1);
  }
}
            
          
!
            
              var $carousel = $('.app__container-slider').flickity({
  initialIndex: 1,
  cellAlign: 'left',
  pageDots: false,
  wrapAround: true,
  contain: true,
  selectedAttraction: 0.01,
  friction: 0.14
});

var $designerSlider = $('.app__designer-slider').flickity({
  cellAlign: 'left',
  prevNextButtons: false,
  pageDots: false,
  freeScroll: true,
  contain: true
});

var toggleMenu = function() {
  $(document).on('click', '.app__menu-toggle', function() {
    $('body').addClass('is-menu-open');
  });
};

var closeMenu = function() {
  $(document).on('click', '.app__menu-close', function() {
    $('body').removeClass('is-menu-open');
  });
};

var Accordion = function() {
  $(document).on('click', '.accordion__head', function() {
    var parent = $(this).parent();
    if (parent.hasClass('is-active')) {
      parent.removeClass('is-active');
    } else {
      $('.app__accordion').removeClass('is-active');
      parent.addClass('is-active');
    }
  });
};

var initialAnim = function() {
  $('body').addClass('is-loaded'); 
};

$(window).on('load', function() {
  initialAnim();
});

Accordion();
toggleMenu();
closeMenu();
            
          
!
999px
Loading ..................

Console