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

              
                .stage.intro_s
  .scene.center
    %h1.intro Steven Marshall
    %h2.sub Full stack web developer
    %span.header.code Baking up code
    %span.subheader.pro Like a boss
    %span.header.years 213 years experience
    %span.subheader.don of being a coding don
    %span.header.build Can build responsive websites
    %span.subheader.calc on a calculator
    %span.header.call call me now on 01223 283723
    
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

body{
  margin:0;
  padding:0;
  background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 34%, rgba(31, 31, 31, 0.69) 190%);
  height:100vh;
  overflow:hidden;
  .center{
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    height: 62px;
    margin: auto;
  }
}
.stage{
  height:100vh;
  position:relative;
  transform:rotateX(0deg) rotateY(0deg) rotateZ(00deg) translateX(0px) translateY(0px) translateZ(0px) scale(1.45);
}
.scene{
  perspective:600;
  height:100vh;
  .header,.subheader{
    display:block;transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateX(0px) translateY(0px) translateZ(0px) scale(1) !important;
  }
  h1,.header{
    font-family:montserrat;
    color:#424242;
    font-size: 31px;
    font-weight:700;
    margin:0;
    left:-4px;
    letter-spacing: -3.4px;
    text-transform:uppercase;
    span{
      transform:scale(0);
      transition-property:transform;
      transition-duration:1s;
      opacity:0;
      position:relative;
      top:20px; 
      display: inline;
    }
  }
  h2{
    top: -28px;
  }
  h2,.subheader{
    font-family: montserrat;
    text-transform: uppercase;
    letter-spacing: -2.9px;
    font-size: 22px;
    
    transform-origin: 0px 0%;
    color: #FF8D3F;
    transform: rotateX(-87deg);
    left: -3px;
    font-weight: 400;
    position: relative;
  }
  .sub{
    opacity:0;
  }
  line{
    width:200px;
    height:2px;
    background:red;
  }
}

.drop_swing{
  animation:drop_swing 2s forwards,wipe_left .7s 2.8s forwards cubic-bezier(0.19, 1, 0.22, 1);
}
.intro_s{
  animation:intro_3d .7s .8s forwards cubic-bezier(0.19, 1, 0.22, 1);
}
.intro{
animation:wipe_right .7s 2.85s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  opacity:1;
}

.code{
  animation:up .5s 4s forwards cubic-bezier(0.19, 1, 0.22, 1),nudge .26s 4.45s forwards cubic-bezier(0.19, 1, 0.22, 1),wipe_right .7s 6s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  top:1000px;
}

.pro{
  animation:down .45s 4.3s forwards cubic-bezier(0.19, 1, 0.22, 1),wipe_left .7s 6s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  top:1000px;
}

.don{
  animation:down .45s 7s forwards cubic-bezier(0.19, 1, 0.22, 1),wipe_left .7s 8.7s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  top:1000px;
}

.years{
  animation:up .5s 6.7s forwards cubic-bezier(0.19, 1, 0.22, 1),nudge .26s 7.15s forwards cubic-bezier(0.19, 1, 0.22, 1),wipe_right .7s 8.7s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  top:1000px;
}
.call,.not{
  display:none;
  opacity:0;
}
.calc{
  animation:down .45s 9.7s forwards cubic-bezier(0.19, 1, 0.22, 1),wipe_left .7s 11.4s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  top:1000px;
}

.build{
  animation:up .5s 9.4s forwards cubic-bezier(0.19, 1, 0.22, 1),nudge .26s 9.85s forwards cubic-bezier(0.19, 1, 0.22, 1),wipe_right .7s 11.4s forwards cubic-bezier(0.19, 1, 0.22, 1);
  position:relative;
  top:1000px;
}

@keyframes drop_swing{
  0%{transform: rotateX(-87deg);}
  50%{transform: rotateX(-87deg);opacity:0;}
  70%{transform: rotateX(40deg);opacity:1;}
  80%{transform: rotateX(-20deg);opacity:1;}
  90%{transform: rotateX(15deg);opacity:1;}
  100%{transform: rotateX(0deg);opacity:1;}
}

@keyframes intro_3d{
 100%{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateX(0px) translateY(0px) translateZ(0px) scale(1);}
}

@keyframes wipe_left{
  from{left:0;transform: rotateX(0deg);opacity:1;}
  to{opacity:0;left:-200px;transform: rotateX(0deg);display:none}
}

@keyframes wipe_right{
  from{left:0;transform: rotateX(0deg);opacity:1;}
  to{opacity:0;left:200px;transform: rotateX(0deg);display:none}
}

@keyframes up{
  0%{top:-1000px}
  50%{top:10px;}
  100%{top:0px;}
}
@keyframes nudge{
  0%{top:0}
  50%{top:-10px;}
  100%{top:0px;}
}
@keyframes down{
  0%{top:1000px}
  50%{top:-10px;}
  100%{top:0px;}
}
              
            
!

JS

              
                split = function (to_split) {
  words = $(to_split).text().split('');
  title = $(to_split).text().split('');
  for (i in words) {
    words[i] = '<span>' + words[i] + '</span>';
  }
  text = words.join('');
  $(to_split).html(text);
};

show_text = function (to_show,method,timing) {
  split($(to_show));
  count = 0;
  length = $(to_show).find('span').length;
  $(to_show + ' span').each(function () {
    if(method == 'popup'){
      $(this).delay((timing * count)+count*1).animate({ opacity: '1','top':'-10px'}, 220,'easeOutCubic');
      $(this).delay((0 * count)+count/0).animate({ opacity: '1','top':'0px'}, 140);
    } else {
      $(this).delay(timing * count).animate({ opacity: '1','top':'0' }, 100);
    }
    count++;
  });
};

// The show
show_text('.intro','popup',10);
setTimeout(function(){
  $('.sub').addClass('drop_swing')
},100)
setTimeout(function(){
  $('.sub').hide()
  $('.intro').hide()
},3400)
setTimeout(function(){
  $('.pro').hide()
  $('.code').hide()
},6400)
setTimeout(function(){
  $('.years').hide()
  $('.don').hide()
},9400)
setTimeout(function(){
  $('.calc').hide()
  $('.build').hide()
},12200)
setTimeout(function(){
  $('.call,.not').css('opacity','1');
  show_text('.call','popup',10);
  setTimeout(function(){
  show_text('.not','popup',10);
    },233)
},12300)
              
            
!
999px

Console