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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <link href='https://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>

<h1>
  <span>Un</span><span>break</span><span>able</span>
</h1>
<h2>Headline text</h2>
            
          
!
            
              @import "bourbon";

$purple: #b941ad;
$yellow: #f8d545;

@include keyframes(scale){
  0%{
    @include transform(scaleY(0));
  }
  100%{
    @include transform(scaleY(1));
  }
}

@include keyframes(bounce){
  0%{
    @include transform(translateY(0));
  }
  50%{
    @include transform(translateY(-1em));
  }


  100%{
    @include transform(translateY(0));
  }
}

@include keyframes(knock){
  0%{
    @include transform(translateY(1em));
  }

  100%{
    @include transform(translateY(0));
    opacity: 1;
  }
}

body, html{
  font-size: 1.4em;
  height: 100%;
}

body{
  background: $purple;
}

h1, h2{
  font-family: 'Fjalla One', sans-serif;
  text-transform: uppercase;
  text-align: center;
}

h1{
  @include animation(bounce .2s ease .9s);
  @include animation-fill-mode(forwards);
  color: white;
  span{
    @include transform-origin(bottom center);
    @include transform(scale(0));
    @include backface-visibility(hidden);
    margin: 0;
    padding:0;
    display: inline-block;
    
    &:nth-child(1){
      @include animation(scale .1s linear);
      @include animation-fill-mode(forwards);
    }
    
    &:nth-child(2){  
      @include animation(scale .2s linear .3s);
      @include animation-fill-mode(forwards);
      font-size: 1.3em;
    }
    &:nth-child(3){
      @include animation(scale .2s linear .4s);
      @include animation-fill-mode(forwards);
      font-size: 1.6em;
    }
  }
}

h2{
  @include animation(knock .1s linear .8s);
  @include animation-fill-mode(forwards);
  @include transform(translateY(1em));

  opacity: 0;
  color: $yellow;
  font-size: 2.55em;
  margin-top: -.9em;
}
            
          
!
999px
Loading ..................

Console