Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                .experiment
  .tabs
    input(type="radio" name="tabs" id="tab1" checked)
    label(class="nav-label" for="tab1") 
      span Account
      span(class="only")
    input(type="radio" name="tabs" id="tab2")
    label(class="nav-label" for="tab2" id="two") 
      span Profile
      span(class="only")
    input(type="radio" name="tabs" id="tab3")
    label(class="nav-label" for="tab3" id="three") 
      span Settings
      span(class="only")
    input(type="radio" name="tabs" id="tab4")
    label(class="nav-label" id="nobottom" for="tab4") 
      span Miscellaneous
      span(id="lastone" class="only")
    .tab-content(id="tab-content1")
      .name
        .tree
          .leaf
        .tree.rightside
          .leaf
        img(class="profile" src="http://charlesmarcotte.me/images/12977238_10156780503205082_9096884707636244771_o.jpg")
        .information
          h3.user Charlie Marcotte
          h5.account Pro Account
      .formcontainers
        .formfields
          input(id="texter" type="text" placeholder="User Name" required /)
          label(class="formlabel") User Name
          span(id="top-move")
          span(id="bottom-move")
          span(id="side-move")
        .formfields
          input(id="texter" type="text" placeholder="Email" required /)
          label(class="formlabel") Email
          span(id="top-move")
          span(id="bottom-move")
          span(id="side-move")
        .formfields
          input(id="texter" type="text" placeholder="Occupation" required /)
          label(class="formlabel") Occupation
          span(id="top-move")
          span(id="bottom-move")
          span(id="side-move")
        .formfields
          input(id="texter" type="text" placeholder="Website" required /)
          label(class="formlabel") Website
          span(id="top-move")
          span(id="bottom-move")
          span(id="side-move")
        .mountainbutton
          p Save
    .tab-content(id="tab-content2")
      h3 Profile
    .tab-content(id="tab-content3")
      h3 Settings
    .tab-content(id="tab-content4")
      h3 Miscellaneous
    
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Raleway')

body
  margin: 0
  padding: 0
  display: flex
  justify-content: center
  align-items: center
  height: 100vh
  width: 100%
  font-family: 'Raleway', sans-serif
  background: #C33764
  background: -webkit-linear-gradient(to right, #649173, #DBD5A4)
  background: linear-gradient(to right, #649173, #DBD5A4)

.experiment
  position: relative
  width: 650px
  display: flex
  justify-content: center
  align-items: center
  height: 399px
  background: white
  box-shadow: 1px 1px 40px 1px darken(#555555, 3%)

.tabs
  position: absolute
  z-index: 10
  left: 0
  top: 0
  height: 400px
  
.tabs input[type=radio]
  display: none
  
.nav-label
  transition: .3s
  font-size: 16px
  height: 40px
  cursor: pointer
  display: flex
  justify-content: center
  align-items: center
  padding-top: 30px
  padding-bottom: 29px
  padding-left: 20px
  padding-right: 20px
  border-right: 1px solid #CCCD9E
  border-bottom: 1px solid #CCCD9E
  width: 100%
  &:hover
    background: lighten(#A4B68D, 25%)
  
#nobottom
  border-bottom: none
  
.tab-content
  position: absolute
  top: 0px
  width: 463px
  left: 188px
  height: 100%
  opacity: 0
  z-index: -1
  // background: blue
  
#tab-content2, #tab-content3, #tab-content4
  z-index: -10
  display: flex
  justify-content: center
  
.tabs [id^="tab"]:checked + .nav-label
  background: #A4B68D
  color: white


#tab1:checked ~ #tab-content1,
#tab2:checked ~ #tab-content2,
#tab3:checked ~ #tab-content3, #tab4:checked ~ #tab-content4
  animation: move .5s ease-out forwards
  z-index: 50
  @keyframes move
    0%
      transform: translate(-28px, 0px)
    100%
      opacity: 1
    
span
  animation: nav .5s ease-out forwards
  opacity: 1
  @keyframes nav
    0%
      transform: translateY(15px)
    100%
      opacity: 1
    
.only
  position: absolute
  height: 0px
  width: 0px
  left: 33px
  background: #649173
  border-top-right-radius: 75%
  border-bottom-left-radius: 75%
  z-index: 1
  &:after
    content: ''
    position: absolute
    background: lighten(#649173, 10%)
    height: 0px
    width: 0px
    border-top-right-radius: 75%
    border-bottom-left-radius: 75%
    transform: rotate(90deg)
    left: 11px
    top: 0
    z-index: -1
  &:before
    content: ''
    position: absolute
    background: #D8D3A3
    height: 0px
    width: 0px
    border-top-right-radius: 75%
    border-bottom-left-radius: 75%
    transform: rotate(45deg)
    left: 8px
    top: -3px
    z-index: -1
    
  
.tabs [id^="tab"]:checked + label > .only
  animation: run .4s ease-in forwards
  @keyframes run
    100%
      height: 15px
      width: 15px
    
.tabs [id^="tab"]:checked + label > .only:after
  animation: run2 .4s ease-in forwards
  // animation-delay: .1s
  @keyframes run2
    100%
      height: 12px
      width: 12px 
    
.tabs [id^="tab"]:checked + label > .only:before
  animation: run3 .4s ease-in forwards
  // animation-delay: .2s
  @keyframes run3
    100%
      height: 9px
      width: 9px 

#lastone
  position: absolute
  left: 10px !important

.name
  position: relative
  display: flex
  justify-content: center
  align-items: center
  width: 100%
  z-index: 10
  height: 30%
  
.profile
  position: relative
  height: 75px
  width: 75px
  top: -15px
  border-radius: 100%

.information
  position: relative
  display: flex
  flex-direction: column
  justify-content: center
  align-items: center
  top: 5px
  
.user
  margin-left: 15px
  
.account
  position: relative
  color: darken(#ccc, 10%)
  top: -34px
  
.tree
  position: absolute
  height: 17px
  width: 8px
  background: #826953
  left: 55px
  transform: scale(.01)
  
  .leaf
    position: absolute
    border-left: 15px solid transparent
    border-right: 15px solid transparent
    border-bottom: 21px solid #649173
    height: 0px
    top: -15px
    right: -12px
    width: 0px
    &:after
      content: ''
      position: absolute
      border-left: 15px solid transparent
      border-right: 15px solid transparent
      border-bottom: 21px solid lighten(#649173, 10%)
      height: 0px
      top: -9px
      right: -15px
      width: 0px
    &:before
      content: ''
      position: absolute
      border-left: 15px solid transparent
      border-right: 15px solid transparent
      border-bottom: 21px solid #D8D3A3
      height: 0px
      top: -18px
      right: -15px
      width: 0px
      z-index: 10
  
    
#tab1:checked ~ #tab-content1 > .name > .tree
  animation: big .2s ease-in forwards
  animation-delay: .3s
  @keyframes big
    100%
      transform: scale(1)

.rightside
  left: 391px
  animation-delay: .5s !important

.formcontainers
  position: relative
  width: 100%
  display: flex
  flex-direction: column
  // justify-content: center
  // align-items: center
  height: 70%

.formfields
  position: relative
  width: 100%
  z-index: 50
  display: flex
  justify-content: center
  margin-bottom: 20px
    
#texter
  position: relative
  z-index: 90
  width: 90%
  height: 25px
  
.formlabel
  position: absolute
  display: inline
  top: 0px
  z-index: 120
  left: 25px
  font-size: 14px
  transition: .5s
  color: gray
  width: 100px
  text-align: center
  padding-top: 8px
  padding-bottom: 8px
  opacity: 0
  z-index: -100
 
#texter:focus
  outline: none
  
#texter::-webkit-input-placeholder
  font-size: 14px
  padding-left: 8px

#texter:focus::-webkit-input-placeholder
  opacity: 0
  
#texter:valid ~ label, #texter:focus ~ label
  color: white
  transform: translateX(324px)
  background: #649173
  opacity: 1
  z-index: 100
  
#texter:active ~ label
  color: white
  transform: translateX(335px)
  background: #649173
  
#texter
  font-size: 18px
  padding-left: 2px
  
#texter:focus ~ #top-move
  position: absolute
  opacity: 0
  width: 1px
  height: 1px
  right: 102px
  background: #649173
  z-index: 100
  animation: border .5s ease forwards
  @keyframes border
    100%
      width: 340px
      height: 2px
      opacity: 1
    
#texter:focus ~ #side-move
  position: absolute
  opacity: 0
  width: 1px
  height: 1px
  left: 20px
  background: #649173
  z-index: 100
  animation: border2 .3s ease forwards
  animation-delay: .3s
  @keyframes border2
    100%
      width: 2px
      height: 32px
      opacity: 1
    
#texter:focus ~ #bottom-move
  position: absolute
  opacity: 0
  top: 30px
  width: 1px
  border-radius: 8px
  height: 1px
  right: 102px
  background: #649173
  z-index: 100
  animation: border .5s ease forwards
  @keyframes border
    100%
      width: 340px
      height: 2px
      opacity: 1
   
.save
  width: 165px
  height: 52px
  background: #649173
  border-bottom: 7px solid #D8D3A3
  display: flex
  justify-content: center
  align-items: center
  border-radius: 8px
  color: white
  cursor: pointer
  
  
//save button
.mountainbutton
  position: absolute
  bottom: 40px
  transition: .8s
  height: 300px
  width: 300px
  background: linear-gradient(#826A54, tan)
  cursor: pointer
  clip-path: polygon(0% 100%, 14px 70%, 54px 80%, 100px 71%, 123px 74%, 140px 74%, 190px 100%)
  transform: scale(.8)
  left: 25%
  top: -5px
  border-bottom: 9px solid #80A88D
  display: flex
  justify-content: flex-start
  align-items: flex-end
  &:hover
    clip-path: polygon(0% 100%, 14px 90%, 54px 70%, 100px 81%, 123px 74%, 140px 67%, 190px 100%)
    color: white
    
    
  
  p
    position: relative
    margin-left: 63px
    font-size: 22px
    top: 4px
    font-weight: 900
    
  
              
            
!

JS

              
                
              
            
!
999px

Console