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 id="bright_confirmation-logo--container" class="bright_confirmation-logo--container">
  <span class="bright_confirmation-logo--checkmark-circle" ></span>
  <span class="bright_confirmation-logo--checkmark"></span>
  <span class="bright_confirmation-logo--topstar"></span>
  <span class="bright_confirmation-logo--bottomstar"></span>
  <span class="bright_confirmation-logo--littlestar"></span>
  <span class="bright_confirmation-logo--bigstar"></span>
</div>
              
            
!

CSS

              
                /** Bright confirmation logo **/
@mixin animation($str) {
  -webkit-animation: #{$str};
  -moz-animation: #{$str};
  -ms-animation: #{$str};
  -o-animation: #{$str};
  animation: #{$str};
}
@mixin keyframes($animation-name) {
  @-webkit-keyframes #{$animation-name} {
    @content;
  }
  @-moz-keyframes #{$animation-name} {
    @content;
  }
  @-ms-keyframes #{$animation-name} {
    @content;
  }
  @-o-keyframes #{$animation-name} {
    @content;
  }
  @keyframes #{$animation-name} {
    @content;
  }
}

@mixin animation-iteration-count($str) {
  -webkit-animation-iteration-count: #{$str};
  -moz-animation-iteration-count: #{$str};
  -ms-animation-iteration-count: #{$str};
  -o-animation-iteration-count: #{$str};
  animation-iteration-count: #{$str};
}
@mixin transform-origin ($origin) {
  -moz-transform-origin: $origin;
  -o-transform-origin: $origin;
  -ms-transform-origin: $origin;
  -webkit-transform-origin: $origin;
  transform-origin: $origin;
}
@mixin animation-fill-mode($str) {
  -webkit-animation-fill-mode: #{$str};
  -moz-animation-fill-mode: #{$str};
  -ms-animation-fill-mode: #{$str};
  -o-animation-fill-mode: #{$str};
  animation-fill-mode: #{$str};
}
@mixin transform($transforms) {
  -moz-transform: $transforms;
  -o-transform: $transforms;
  -ms-transform: $transforms;
  -webkit-transform: $transforms;
  transform: $transforms;
}

.bright_confirmation-logo--container {
  position: relative;
  border: 1px solid black;
  height: 71px;
  width: 82px;
  margin: auto;
  padding-bottom: 20px;
}
.bright_confirmation-logo--checkmark {
  background-image: url('http://markcarlson.io/wp-content/uploads/2017/09/check.svg');
  width: 41px;
  height: 30px;
  position: absolute;
  top: 25px;
  left: 9px;
}

/** CHECKMARK CIRCLE **/
.bright_confirmation-logo--checkmark-circle {
  background-image: url('http://markcarlson.io/wp-content/uploads/2017/09/circle.svg');
  width: 60px;
  height: 60px;
  position: absolute;
  top: 10px;
  left: 0;
  @include animation(bright_confirmation-logo--checkmark-circle ease-in-out 2s);
  @include animation-iteration-count(1);
  @include transform-origin(50% 50%);
  @include animation-fill-mode(forwards); /*when the spec is finished*/
}

@include keyframes(bright_confirmation-logo--checkmark-circle) {
  0% {
    @include transform(scale(0.1));
  }
  20% {
    @include transform(scale(1.20));
  }
  32% {
    @include transform(scale(0.9));
  }
  45% {
    @include transform(scale(1));
  }
}

/** BOTTOM STAR **/
.bright_confirmation-logo--bottomstar {
  position: absolute;
  top: 48px;
  left: 39px;
  background-image: url('http://markcarlson.io/wp-content/uploads/2017/09/bottomStar.svg');
  height: 23px;
  width: 23px;
  @include animation(bright_confirmation-logo--bottomstar ease-in-out 1s);
  @include animation-iteration-count(1);
  @include transform-origin(50% 50%);
  @include animation-fill-mode(forwards); /*when the spec is finished*/
}

@include keyframes(bright_confirmation-logo--bottomstar) {
  0% {
    opacity:0;
    @include transform(translate(-6px,0px) scale(0.80));
  }
  40% {
    opacity:0.8338459261703226;
    @include transform(translate(12px,0px) scale(1.00));
  }
  65% {
    opacity:1;
    @include transform(translate(-5px,0px) scale(1.00));
  }
  90% {
    @include transform(translate(0px,0px) scale(1.00));
  }
}

/** TOP STAR **/
.bright_confirmation-logo--topstar {
  background-image: url('http://markcarlson.io/wp-content/uploads/2017/09/topStar.svg');
  width: 25px;
  height: 25px;
  position: absolute;
  left: 13px;
  @include animation(bright_confirmation-logo--topstar ease-in-out 2s);
  @include animation-iteration-count(1);
  @include transform-origin(50% 50%);
  @include animation-fill-mode(forwards); /*when the spec is finished*/
}

@include keyframes(bright_confirmation-logo--topstar) {
  0% {
    opacity:0;
    @include transform(translate(10px,0px) scale(0.20));
  }
  18% {
    opacity:0.3;
    @include transform(translate(10px,0px) scale(0.10));
  }
  32% {
    opacity:1;
    @include transform(translate(-2px,0px) scale(1.5));
  }
  45% {
    @include transform(translate(1px,0px) scale(0.90));
  }
  50% {
    @include transform(translate(0px,0px) scale(1.00));
  }
}

/** BIG STAR **/
.bright_confirmation-logo--bigstar {
  background-image: url('http://markcarlson.io/wp-content/uploads/2017/09/bigStar.svg');
  width: 39px;
  height: 38px;
  position: absolute;
  top: 0px;
  left: 43px;
  @include animation(bright_confirmation-logo--bigstar ease-in-out 2s);
  @include animation-iteration-count(1);
  @include transform-origin(50% 50%);
  @include animation-fill-mode(forwards); /*when the spec is finished*/
}

@include keyframes(bright_confirmation-logo--bigstar) {
  0% {
    opacity:0;
    @include transform(translate(-25px,0px) scale(0.20));
  }
  20% {
    opacity:0.3;
    @include transform(translate(-25px,0px) scale(0.20));
  }
  38% {
    opacity:1;
    @include transform(translate(0px,0px) scale(1.25));
  }
  50% {
    @include transform(translate(0px,0px) scale(0.90));
  }
  55% {
    @include transform(translate(0px,0px) scale(1.00));
  }
}

/** LITTLE STAR **/
.bright_confirmation-logo--littlestar {
  background-image: url('http://markcarlson.io/wp-content/uploads/2017/09/littleStar.svg');
  position: absolute;
  height: 12px;
  width: 12px;
  top: 35px;
  left: 70px;
  @include animation(bright_confirmation-logo--littlestar ease-in-out 2s);
  @include animation-iteration-count(1);
  @include transform-origin(50% 50%);
  @include animation-fill-mode(forwards); /*when the spec is finished*/
}

@include keyframes(bright_confirmation-logo--littlestar) {
  0% {
    opacity:0;
    @include transform(translate(-15px,0px) scale(0.20));
  }
  35% {
    opacity:0.2;
    @include transform(translate(-20px,0px) scale(0.20));
  }
  45% {
    opacity:1;
    @include transform(translate(5px,0px) scale(1.50));
  }
  55% {
    @include transform(translate(1px,0px) scale(0.90));
  }
  65% {
    @include transform(translate(0px,0px) scale(1.00));
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console