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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                .container
  .card
    .main
      .header
        h1 COMING SOON
        .plan
          .intro
            h3.animated.fadeIn Estimated completion in
          .date
            img src="https://cdn2.hubspot.net/hub/121314/file-2194336369-png/ICONS_key-date-management.png?t=1464725616708&width=284"
            h4 2016.07.31
            h5 Find more
          .poi#extender
             .bar#hor
             .bar#ver
          .poi-connector
            .line
            .con-point
              .inner-point
          .details
            .row
             .col-xs-6.project
               h4 Project
               h5 Website name
               p One page website design project from a mockup to coding.
               a.btn.btn-default.more Learn more
             .col-xs-6.client
               h4 Client
               h5 Company name
               p Company offering high quality services in various areas.
               a.btn.btn-default.more Learn more
      .content
        h4 In the meantime, check my other activities and projects.
        a.btn.btn-default.visitlink href="http://simplicity.lt" target="_blank" Go to main page
        h5.animated.fadeInDown Have questions? Leave a message below.
        .btn.contact-details#down
          .bar#left
          .bar#right
    .contact-box
      h3 Send me a message
      form
        .form-group
          input.form-control type="text" placeholder="Your name"
        .form-group
          input.form-control type="email" placeholder="Your email"
        .form-group
          textarea.form-control placeholder="Drop your message here"
        button.submit type="submit" Send a message
.container
  .color-pallete
    ul
      li#white
      li#dark-sand
      li#deep-gray
      li#dark-gray
      li#deep-red
  .copyright
    p 
      span Designed by  
      a href="http://simplicity.lt" target="_blank" Simplicity.lt
      span  2016. All rights reserved.
    
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Exo+2:400,300,700);
@white: #FFF;
@dark-sand: #E5E1D1;
@deep-gray: #52616D;
@dark-gray: #2C343B;
@deep-red: #C44741;
@main-bg: silver;
@card-width: 450px;
@card-color: @white;
@card-header: @dark-sand;
@button-color: @dark-gray;
@text-color: @deep-gray;
@main-bg-img: "http://www.simplicity.lt/images/sandbox/hd-images/mountains3.jpg";
@card-bg-img: "http://www.simplicity.lt/images/sandbox/hd-images/bridge1.jpg";

body {
  background-color: @main-bg;
  background-image: url(@main-bg-img);
  background-size: cover;
  background-repeat: no-repeat;
  color: @text-color;
  font-family: 'Exo 2', Arial, sans-serif;
}
.btn {
  &:focus, &:active {
    outline: none !important;
  }
}
.card {
  position: relative;
  z-index: 1;
  max-width: @card-width;
  margin: 5% auto 0;
  text-align: center;
  color: @white;
  .main {
     text-shadow: -1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    background-color: @card-color;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(@card-bg-img);
    -webkit-box-shadow: -2px 2px 4px rgba(0,0,0,0.6);
  box-shadow: -2px 2px 6px rgba(0,0,0,0.6);
  }
  .header {
    padding: 20px;
    h1 {
      margin-bottom: 50px;
      font-weight: 700;
    }
    .plan {
      display: block;
      position: relative;
      .date {
        position: relative;
        width: 150px;
        height: 150px;
        right: 0;
        top: 0;
        background: @deep-red;
        border-radius: 100%;
        margin: 25px auto;
        overflow: hidden;
        -webkit- transition: all 500ms ease-in-out;
        transition: all 500ms ease-in-out;
        h4 {
          margin-top: 0;
        }
        img {
          width: 80px;
        }
      }
      .poi {
        position: relative;
        cursor: pointer;
        z-index: 5;
        width: 50px;
        height: 50px;
        top: -50px;
        right: 0;
        background-color: @dark-gray;
        border-radius: 100%;
        margin: 0 auto -25px;
        box-shadow: 0px 0px 10px rgba(0,0,0,0.8);
        -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000) .3s;
        transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000) .3s;
        &:hover {
          background-color: darken(@dark-gray,10%);
        }
        .bar {
          position: absolute;
          width: 2px;
          height: 24px;
          background-color: @white;
          top: 12px;
          left: 24px;
          -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          &#hor {
            -webkit-transform: rotate(-90deg);  
            transform: rotate(-90deg);   
          }
        }
      }
      .poi-connector {
        position: relative;
        margin-top: -80px;
        z-index: 3;
        .line {
          position: relative;
          width: 2px;
          height: 0;
          margin: 0 auto;
          background-color: @deep-red;
          -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000) .2s;
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000) .2s;
        }
        .con-point {
          position: relative;
          width: 50px;
          height: 50px;
          margin: 0 auto;
          padding: 3px;
          background: transparent;
          border: 2px solid @deep-red;
          border-radius: 100%;
          -webkit-transform: scale(0,0);
          transform: scale(0,0);
          box-shadow: 0 0 4px rgba(0,0,0,0.5);
          -webkit- transition: all 200ms cubic-bezier(0.680, -0.550, 0.265, 1.550);
          transition: all 200ms cubic-bezier(0.680, -0.550, 0.265, 1.550);
          .inner-point {
            width: 40px;
            height: 40px;
            background-color: @deep-red;
            border: 4px solid transparent;
            border-radius: 100%;
          }
        }
      }
      .details {
        width: 100%;
        margin-top: -25px; 
        opacity: 0;
        padding:  0 20px 20px;
        position: relative;
        box-shadow: -2px 2px 4px rgba(0,0,0,0.5);     
        background-color: fadeOut(@deep-gray,60%);
        transform: scale(0,0);
        transform-origin: center top;
        -webkit- transition: all 200ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition: all 200ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
        .more {
          background-color: @white;
          width: 100%;
          border-radius: 0;
          text-shadow: none;
        }
        .project, .client {
          text-align: center;
          h4, h5 {
            font-weight: 700;
          }
        }
      }
    }
  }
  .content {
    padding: 20px;
    color: @white;
    .visitlink {
      animation-delay: .2s;
      border-radius: 0;
      background-color: @button-color;
      border: none;
      color: @white;
      width: 100%;
      padding: 15px 0;
      font-size: 16px;
      -webkit-transition: all .15s ease-in-out;
      transition: all .15s ease-in-out;
      &:hover {
        background-color: darken(@button-color, 10%);
      }
    }
    .btn {
      &.contact-details {
        position: relative;
        width: 50px;
        height: 50px;
        padding: 10px 5px;
        background-color: @deep-red;
        border-radius: 100%;
        box-shadow: 0px 0px 10px rgba(0,0,0,0.8);
        margin-bottom: -55px;
        -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
        .bar {
          position: absolute;
          display: block;
          height: 24px;
          width: 2px;
          background: @white;
          -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          &#left {
            top: 12px;
            left: 15px;
            transform: rotate(-45deg);
          }
          &#right {
            top: 12px;
            right: 15px;
            transform: rotate(45deg);
          }
        }
      }
    }
  }
}
.contact-box {
  position: relative;
  z-index: 1;
  background-color: fadeOut(@white, 50%);
  max-width: @card-width;
  margin: 0 auto 50px;
  padding: 20px;
  color: @dark-gray;
  text-align: center;
  -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
  h3 {
    margin: 0 auto 25px;
  }
  input[type="text"], input[type="email"], textarea {
    border-radius: 0;
    padding: 10px;
  }
  .submit {
    padding: 10px;
    width: 100%;
    border: none;
    background-color: @deep-red;
    color: @white;
    font-size: 16px;
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
    &:hover {
      background-color: darken(@deep-red, 10%);
    }
  }
  transform: translate(0, -100%);
}
/* animations  */
.show-details {
  .card {
    .header {
      .plan {
        .poi {
          -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
          transform: rotate(-90deg);
          transform-origin: 25px -50px;
        }
        .bar {
          &#hor {
            -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg);    
          }
          &#ver {
            -webkit-transform: rotate(180deg);
            transform: rotate(180deg);    
          }
        }
        .poi-connector {
          .line {
            -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
            height: 80px;
          }
          .con-point {
            -webkit- transition: all 200ms cubic-bezier(0.680, -0.550, 0.265, 1.550) .5s;
            transition: all 200ms cubic-bezier(0.680, -0.550, 0.265, 1.550) .5s;
            -webkit-transform: scale(1,1);
            transform: scale(1,1);
          }
        }
        .details {
          opacity: 1;
          transform: scale(1,1);
          -webkit- transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000) .8s;
          transition: all 500ms cubic-bezier(0.215, 0.610, 0.355, 1.000) .8s;
        }
      }
    }
  } 
}
.show-contacts {
  .contact-box {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
  #down {
    -webkit-transform: translate(300%, 0) rotate(180deg);
    transform: translate(300%, 0) rotate(180deg);
  }
  .card {
    .content {
      .btn {
        &.contact-details { 
          .bar {
            &#left {
              top: 13px;
              left: 23px;  
            }
            &#right {
              top: 13px;
              right: 23px;
            }
          }
        }
      }
    }
  }
}
/* added info */
.color-pallete {
  ul {
   list-style-type: none;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    li {
      display: inline-block;
      max-width: 85px;
      width: 100%;
      height: 25px;
      &#white {
        background-color: @white;
      }
      &#dark-sand {
        background-color: @dark-sand;
      }
      &#deep-gray {
        background-color: @deep-gray;
      }
      &#dark-gray {
        background-color: @dark-gray;
      }
      &#deep-red {
        background-color: @deep-red;
      }
    }
  }
}
.copyright {
  text-align: center;
  font-size: 14px;
}
              
            
!

JS

              
                var container = document.querySelector('.container');
function toggleDetails(){
    isShowingDetails() ? hideDetails() : showDetails();
}
function showDetails(){
    container.classList.add('show-details');
}
function hideDetails(){
    container.classList.remove('show-details');
}
function isShowingDetails(){
    return container.classList.contains('show-details');
}
document.querySelector('#extender').addEventListener('click', toggleDetails, false);

function toggleContacts(){
    isShowingContacts() ? hideContacts() : showContacts();
}
function showContacts(){
    container.classList.add('show-contacts');
}
function hideContacts(){
    container.classList.remove('show-contacts');
}
function isShowingContacts(){
    return container.classList.contains('show-contacts');
}
document.querySelector('#down').addEventListener('click', toggleContacts, false);
              
            
!
999px

Console