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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="pricing">
  <img src="http://kara-loo.com/portfolio/img-host/pricing-clouds.png" class="pricing__bg" alt="clouds background img" />
  <div class="container">
    <div class="container__section section-1">
      <div class="container__section_top">
        <div class="container__section_top_bg-clouds">
        </div>
        <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" class="container__section_top_svg">
  <style>
    .balloon-st0{fill:#EC1C24;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .balloon-st1{fill:none;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .balloon-st2{fill:#B99664;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .balloon-st3{fill:#F6921E;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
  </style>
  <g>
    <path class="balloon-st0" d="M316.1 309.2s68.2-87.1 68.2-152.3c0-74.5-60.4-134.8-134.8-134.8S114.6 82.5 114.6 156.9c0 65.1 68.2 152.3 68.2 152.3h133.3z"/>
    <path class="balloon-st1" d="M182.8 309.2l15.7 78.8M249.5 309.2V388M316.1 309.2L300.5 388"/>
    <path class="balloon-st2" d="M183.1 388h132.8v22.9H183.1z"/>
    <path class="balloon-st2" d="M309.2 410.8H189.7l9.6 67.7h100.3z"/>
    <path class="balloon-st3" d="M249.5 22.1c-74.5 0-134.8 60.4-134.8 134.8 0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9c0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9c0-24.8 20.1-44.9 44.9-44.9s44.9 20.1 44.9 44.9h.1c.1-74.4-60.3-134.8-134.7-134.8z"/>
    <path class="balloon-st1" d="M204.5 156.9l9 152.3M294.3 156.9L283 309.2"/>
  </g>
</svg>
      </div>
      <span class="container__section_headline">
        Basic
      </span>
      <span class="container__section_tag">
        Free
      </span>
      <p class="container__section_desc">Settle for a baseline of "get the job done" features</p>
      <button class="container__section_cta">Choose</button>
    </div>
    <div class="container__section section-2">
      <div class="container__section_top">
        <div class="container__section_top_bg-clouds">
        </div>
        <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" class="container__section_top_svg">
  <style>
    .st0{fill:#F1F1F2;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st1{fill:#A6A8AB;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
  </style>
  <g>
    <g>
      <path class="st0" d="M166.098 147.883l-44.547-44.547 62.084-62.084L228.182 85.8zM411.48 269.022l44.617 44.618-62.083 62.084-44.618-44.618z"/>
    </g>
    <path class="st0" d="M310.8 157.5C260.4 123.1 85.5 10.4 38.2 57.7c-35 35.1 170 161.1 202.8 180.9l29.5-29.5 40.3-51.6z"/>
    <path class="st0" d="M322 168.7c34.3 50.4 147.1 225.3 99.8 272.6-35 35.1-161.1-170-180.8-202.7l29.5-29.5 51.5-40.4z"/>
    <path class="st0" d="M92.9 386.6l45.6 63.7c34.3-13.9 16.4-47.4 1.4-70.9 0 0 264.5-227.1 290.1-252.7 32.7-32.7 34.5-69 13.2-90.3s-57.6-19.5-90.3 13.2c-25.6 25.6-252.7 290.1-252.7 290.1-23.5-15.1-57.1-33-70.9 1.4l63.6 45.5z"/>
    <path class="st0" d="M121.7 379.9c-18.6 18.6-28.8 18.9-34.9 12.8s-5.8-16.3 12.8-34.9 46.1-36.2 52.2-30.1c6.1 6.1-11.5 33.7-30.1 52.2z"/>
    <path class="st1" d="M427.7 101.1l-49.3-49.3L391 39.2l29.2 20.2 20.2 29.1z"/>
  </g>
</svg>
      </div>
      <span class="container__section_headline">
        Advanced
      </span>
      <span class="container__section_tag">
        $20<span>/mo</span>
      </span>
      <p class="container__section_desc">You know 1-2 missing features are going to drive you batshit crazy</p>
      <button class="container__section_cta">Choose</button>
    </div>
    <div class="container__section section-3">
      <div class="container__section_top">
        <div class="container__section_top_bg-clouds">
        </div>
        <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" class="container__section_top_svg">
  <style>
    .rocket-st0{fill:#EC1C24;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .rocket-st1{fill:#F1F1F2;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .rocket-st2{fill:#B8E4FA;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .rocket-st3{fill:none;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .rocket-st4{fill:#A6A8AB;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .rocket-st5{fill:#F98B06;stroke:#231F20;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .rocket-st6{fill:#EC1C24;}
  </style>
  <g>
    <path class="rocket-st0" d="M233.4 337.5c14.9 14.9 45.3 45.3 5.2 85.5 72.7-24.9 149.3-132 134.6-202.3L233.4 337.5zM166.2 270.3c-14.9-14.9-45.3-45.3-85.5-5.2 24.8-72.6 132-149.3 202.3-134.5L166.2 270.3z"/>
    <path class="rocket-st1" d="M233.4 337.5s48.8-23.3 106.9-81.4C416.9 179.5 481.9 73 456.2 47.4c-25.7-25.7-132.1 39.3-208.8 115.9-58.1 58.1-81.4 106.9-81.4 106.9l67.4 67.3z"/>
    <path class="rocket-st2" d="M381.6 163.2c-11.4 11.4-29.7 11.4-41.1 0-11.4-11.4-11.4-29.7 0-41.1s29.7-11.4 41.1 0c11.4 11.3 11.4 29.8 0 41.1zM291 253.7c-11.4 11.4-29.7 11.4-41.1 0-11.4-11.4-11.4-29.7 0-41.1 11.4-11.4 29.7-11.4 41.1 0 11.4 11.4 11.4 29.8 0 41.1z"/>
    <path class="rocket-st3" d="M456.2 47.4l23.2-23.2"/>
    <path class="rocket-st4" d="M189.6 383.2l-69.2-69.1 59-30.6 40.7 40.8z"/>
  </g>
  <path class="rocket-st5" d="M32.2 377.9l81.3-35.3s5.2-6.8 20.7 7.7l13.7 7.5 7.5 14.3s12.7 9.5 8.3 21.3c-4.4 11.9-44.4 78.5-44.4 78.5l-9.1-53.2-43.4 11.9 15.4-38.7-50-14z"/>
  <path class="rocket-st6" d="M79 377.2l39.9-17.3s2.6-3.3 10.2 3.8l6.7 3.7 3.7 7s6.2 4.6 4 10.5c-2.2 5.8-21.8 38.5-21.8 38.5l-4.5-26.1L96 403l7.5-19-24.5-6.8z"/>
</svg>
      </div>
      <span class="container__section_headline">
        Pro
      </span>
      <span class="container__section_tag">
        $50<span>/mo</span>
      </span>
      <p class="container__section_desc">All the features you need and many more you probably don't</p>
      <button class="container__section_cta">Choose</button>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /*-- vars --*/
$small: 37.5em; // 37.5x16 = 600px
$medium: 62em; // 62x16 = 992px
$fuschia: #ed1c24;
$skyblue: #0db5e3;
$litesky: #52c2ed;
$skybluelite: #d8edf5;
$green: #8dcf92;
$bg-clouds-link: 'http://kara-loo.com/portfolio/img-host/clouds.jpg';
$bg-clouds-link-lg: 'http://kara-loo.com/portfolio/img-host/clouds3.jpg';

/*-- mixins --*/
@mixin mq($breakpoint) {
  @media (max-width: #{$breakpoint}) {
    @content;
  }
}

/*-- fonts --*/
@import 'https://fonts.googleapis.com/css?family=Quicksand:400,700|Source+Sans+Pro:300,400,900';

/*-- styles --*/
body {
  color: $skyblue;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0;
  overflow-x: hidden;
  text-transform: uppercase;
  width: 100vw;
}

.pricing {
  align-items: center;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  width: 100vw;
  
  @include mq($medium) {
    background-color: $skyblue;
    height: auto;
    margin-top: 0;
  }
  
  &__bg {
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    
    @include mq($medium) {
      display: none;
    }
  }
}

 .container {
  align-self: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 2px 2px 20px 4px rgba(0, 0, 0, 0.12); 
  display: flex;
  height: auto;
  overflow: hidden;
  padding: 0;
  width: 72vw;
   
  @include mq($medium) {
    display: block;
    margin: 2rem 0;
  }
   
  &__section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 33.333%;
    
    &:not(:first-child) {
      border-left: 2px solid hsla(197, 68%, 77%, 0.8);
      
      @include mq($medium) {
        border-left: none;
        border-top: 2px solid hsla(197, 68%, 77%, 0.8);
      }
    }
    
    @include mq($medium) {
      width: 100%;
    }
    
    &.section-1 {
      &:hover .container__section_top_bg-clouds {
        background-position: top center;  
        transition: background-position 6s linear;
      }
    }
    
    &.section-2 {
      &:hover .container__section_top_bg-clouds {
        background-position: top right;  
        transition: background-position 4s ease-in;
      }
      
      .container__section_top_bg-clouds {
        background-position: bottom left;
      }
    }
    
    &.section-3 {
      &:hover .container__section_top_bg-clouds {
        background-position: 100% 0;  
        transition: background-position 2s ease-in;
      }
      
      &:hover .rocket-st5, 
      &:hover .rocket-st6 {
         -webkit-animation: FIRE 0.5s infinite;
        -moz-animation: FIRE 0.5s infinite;
        -o-animation: FIRE 0.5s infinite; 
        animation: FIRE 0.5s infinite;
      }
      
      .container__section_top_bg-clouds {
        background-image: url($bg-clouds-link-lg);
        background-position: 10% 100%;
      }
    }
    
    &_top {
      align-items: center;
      background-color: $skybluelite;
      display: flex;
      height: 200px;
      justify-content: center;
      overflow: hidden;
      padding: 10px 0;
      position: relative;
      width: 100%;
      
      &_svg {
        cursor: pointer;
        height: 150px;
        width: auto;
        z-index: 2;
      }
      
      &_bg-clouds {
        background-image: url($bg-clouds-link);
        background-position: bottom center;
        height: 100%;
        left: 0;
        opacity: 0.8;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 1;
        
        @include mq($medium) {
          background-image: none;
        }
      }
    }

    &_headline {
      font-size: 1.75rem;
      letter-spacing: 2px;
      padding-top: 1.5rem;
    }
    
    &_tag {
      color: $fuschia;
      font-weight: 700;
      font-size: 2.5rem;
      padding: 0.5rem 0;
      
      span {
        color: $skyblue;
        font-size: 1.75rem;
        font-weight: 300;
        text-transform: none;
      }
    }
    
    &_desc {
      font-weight: 400;
      min-height: 75px;
      text-align: center;
      width: 60%;
    }
    
    &_cta {
      border: none;
      border-radius: 1rem;
      background-color: $litesky;
      color: #fff;
      cursor: pointer;
      font-weight: 700;
      font-size: 1rem;
      margin-bottom: 1.5rem;
      padding: 1rem;
      text-transform: uppercase;
      transition: opacity 0.5s linear;
      width: 70%;
      
      &:hover {
        opacity: 0.6;
      }
      
      @include mq($medium) {
        margin-bottom: 3rem;
      }
    }
  }
}

.rocket-st5, .rocket-st6 {
  opacity: 0;
}

@-webkit-keyframes FIRE {
  0%   { opacity: 0; }
  50% { opactiy: 1; }
  100% { opacity: 0; }
}
@-moz-keyframes FIRE {
  0%   { opacity: 0; }
  50% { opactiy: 1; }
  100% { opacity: 0; }
}
@-o-keyframes FIRE {
  0%   { opacity: 0; }
  50% { opactiy: 1; }
  100% { opacity: 0; }
}
@keyframes FIRE {
  0%   { opacity: 1; }
  33% { opactiy: 0; }
  66% { opactiy: 1; }
  100% { opacity: 0; }
}

              
            
!

JS

              
                
              
            
!
999px

Console