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 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <div class="embed-nav group " id="embed-nav">
  <ul>
      <li>
     <a id="html-link" href="#html-box" style="font-family:'Fira Sans',serif;color:red;" class="active font-effect-fire" >
        <p style="font-family:'Fira Sans',serif;color:red;" class="font-effect-fire">
        HTML</p>
      </a>        </li>
      <li>
    <a id="css-link" href="#css-box" style="font-family:'Fira Sans',serif;color:orange;" class="active font-effect-fire" >
        <p style="font-family:'Fira Sans',serif;color:white;" class="font-effect-fire-animation">
        CSS</p>
      </a>
      </li>
      <li>
    <a id="js-link" href="#js-box" style="font-family:'Fira Sans',serif;color:orange;" class="active font-effect-fire" >
        <p style="font-family:'Fira Sans',serif;color:white;" class="font-effect-fire-animation">
        JS</p>
      </a>
      </li>
    <li>
      <a id="result-link" href="#result-box" style="font-family:'Fira Sans',serif;color:orange;" class="active font-effect-fire" >
        <p style="font-family:'Fira Sans',serif;color:white;" class="font-effect-fire-animation">
        Result</p>
      </a>
    </li>
  </ul>

  <div class="logo-wrap " id="edit-area">
    <a target="_blank" href="<%= url_to_pen_view(@pen, 'pen') %>" title="CodePen">
      Edit
      <span class="on font-effect-fire">on</span>[[[https://codepen.io/chriscoyier/pen/LfyGq]]]    
    </a>
  </div>

</div>
  <script>
  $(window).ready(function() {  
  $(".embed-nav a").hover(function(){
    $("."+ this.className+ "-link").toggleClass("show");
  });
    });
      $(window).ready(function() {  
  $(".active p").hover(function(){
    $(".active .p").toggleClass("hide");
  });
    });
      $(window).ready(function() {  
  $(".embed-nav a").hover(function(){
    $(".p"+ this.className+ "-link").toggleClass("hide");
  });
    });
      $(window).ready(function() {  
  $(".embed-nav a").hover(function(){
    $("p").toggleClass("hide");
  });
    });
</script>
            
          
!
            
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Lobster:400,700&Voltaire:400,700);
@import url(https://fonts.googleapis.com/earlyaccess/alefhebrew.css?effect=fire);
@import url(https://fonts.googleapis.com/css?family=Droid+Sans:300,400,500&effect=fire|fire-animation|3d);
.cp-embed-logo {
  fill: #ccc;
  
font-family: 'Droid Sans', serif;
  font-family: 'Lobster';

}
body {
  background: radial-gradient(#666,#1e1e1e, black);
}
#embed-nav {
  background: linear-gradient(#666,#1e1e1e, black);
  font-family:'Lobster', serif;
}

$tab-bg: transparent;
$tab-link: #222;
$tab-active-bg: #ccc;
$tab-active-link: #000;
$codepen-branding: #ccc;
$code-bg: linear-gradient(45deg, #222, #111);
$code-scroll: linear-gradient(left, #444, #333);

.embed-nav {
  background: $tab-bg;
//  opacity: 0;
  #the-body:hover & {
    opacity: 1;
  }
}
.cp-embed-logo {
  fill: #ccc;
}

.embed-nav {
  background: linear-gradient(#666, black);
}
.embed-nav a {
  color: $tab-link;
  text-transform: uppercase;
  font-family: Raleway, Amatic SC,Roboto,Droid SC;
  font-weight: 700;
  padding: 6px 16px;
  text-shadow: 0 0 1px transparent;
}
.embed-nav a.active {
  @include background(linear-gradient(top, darken($tab-active-bg,15), $tab-active-bg));
  background: $tab-active-bg;
  color: $tab-active-link;
  border-radius:30px;
  transform-style: preserve-3d;
  transform: transformZ(20px) transformX(45deg) transformY(44deg);
}

.embed-nav a.active:after {
  border-top: 8px solid $tab-active-bg;
}

.embed-nav .cp-embed-logo {
  fill: $codepen-branding!important;
}
.embed-nav .logo-wrap a {
  color: transparent;
  font-size: 0;
  vertical-align: bottom;
  padding: 10px 0 0;
}
@media (max-width: 440px) {
  .embed-nav .logo-wrap {
    display: none;
  }
}

#output pre {
  font-size: 13px;
  line-height: 1.45;
  @include background($code-bg);
  color: #FFF;
}
#output pre, #output iframe {
  -webkit-overflow-scrolling: touch;
	&::-webkit-scrollbar {
	  width: 10px;
    height: 10px;
	}
	&::-webkit-scrollbar-thumb {
    @include background($code-scroll);
	}
}


.token.comment,.token.prolog,.token.doctype,.token.cdata {
  color: #aaaaaa;
}
.token.comment {
  font-style: italic;
  background-color: rgba(195, 232, 183, 0.05);
}
.token.punctuation {
  color: #c3c6c4;
}
.token.tag, .language-markup .token.punctuation {
  color: #cc338a;
}
.token.attr-name {
  color: #cc76cc;
}
.token.attr-value {
  color: #bdd9bf;
//  background-color: rgba(56, 255, 175, 0.1);
}
.token.property {
  color: #fff;
}
.token.boolean,.token.number {
  color: #9eaeff;
}
.token.selector {
  color: #c867e0;
}
.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string {
  color: #8592E7;
}
.token.atrule,.token.keyword {
  color: #70b3c7;
}
.token.string {
  color: #dbcac0;
  background-color: rgba(235, 119, 56, 0.2);
}
.token.function {
  color: #B8CF9B;
}
.token.important {
  color: #cc4937;
}
.language-css {
  color: #9eaeff;
}
.language-css .token.punctuation, .token.regex {
  color: #FFF;
}


.embed-shell {
  box-sizing: border-box;
  padding: 6%;
}

            
          
!
            
              /* 
this pens template: https://codepen.io/chriscoyier/pen/toHcm
also using:
https://codepen.io/chriscoyier/pen/HkInq
*/
  

/*
Default 2 / The Gray Race 
embed|iframe|wp shortcode
*/

/*
<p data-height="462" data-theme-id="7783" data-slug-hash="XVorjY" data-default-tab="result" data-user="rayrc" data-embed-version="2" data-pen-title="XVorjY" class="codepen">See the Pen <a href="https://codepen.io/rayrc/pen/XVorjY/">XVorjY</a> by Ray Anthony (<a href="https://codepen.io/rayrc">@rayrc</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
*/

/*
<iframe height='462' scrolling='no' title='XVorjY' src='//codepen.io/rayrc/embed/XVorjY/?height=462&theme-id=7783&default-tab=result&embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen <a href='https://codepen.io/rayrc/pen/XVorjY/'>XVorjY</a> by Ray Anthony (<a href='https://codepen.io/rayrc'>@rayrc</a>) on <a href='https://codepen.io'>CodePen</a>.
</iframe>
*/

/*
[codepen_embed height="462" theme_id="7783" slug_hash="XVorjY" default_tab="result" user="rayrc"]See the Pen <a href='https://codepen.io/rayrc/pen/XVorjY/'>XVorjY</a> by Ray Anthony (<a href='https://codepen.io/rayrc'>@rayrc</a>) on <a href='https://codepen.io'>CodePen</a>.[/codepen_embed]
*/
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console