cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              <header>
  <label>Type a Snowflake</label>
  <input value="}*" maxlength="3" />
</header>

<section>
<div class="snowflake"><s>}*</s><s>}*</s><s>}*</s><s>}*</s><s>}*</s><s>}*</s></div>
</section>
            
          
!
            
              @import url(http://fonts.googleapis.com/css?family=Wellfleet);

* { box-sizing:border-box; }

html, body { position:relative; width:100%; height:100%; }

body {
  position:absolute;  
  display:flex;
  flex-direction:column;
  background-image: -webkit-radial-gradient(center bottom, ellipse farthest-corner, #A1C3FF 0%, #444861 100%);
  background-size:100%;
  text-align:center;
  overflow:hidden;
  user-select:none;
}


.snowflake {
  position:relative;
  display:inline-block;
  color:snow;
  font-family:"Georgia", serif;
  line-height:0;
  width:8rem;
  height:8rem;
  -webkit-animation:spin 20s linear infinite, glow 2s linear infinite;
  animation:spin 20s linear infinite, glow 2s linear infinite;
}
@keyframes spin {
  0%{ transform:rotate(0); }
  100%{ transform:rotate(1turn); }
}
@keyframes glow { 50%{ text-shadow:0 0 3rem rgba(255,255,255,.2); } }


.snowflake s {
  display:inline-block;
  position:absolute;
  left:0;
  bottom:0;
  transform-origin:center top;
  font-family:monospace;
  width:8rem;
  height:4rem;
  font-size:8rem;
  text-decoration:none;
  letter-spacing:-.5rem;
}

.snowflake s:nth-child(2){ transform:rotate(.2turn); }
.snowflake s:nth-child(3){ transform:rotate(.4turn); }
.snowflake s:nth-child(4){ transform:rotate(.6turn); }
.snowflake s:nth-child(5){ transform:rotate(.8turn); }


section { flex:1; padding:3rem; }

header {
  background:rgba(0,0,0,.1);
  padding:1rem;
  font-family:"Wellfleet";
  color:rgba(255,255,255,.9);
}

label {
   line-height:2rem;
  font-size:1rem;  
}

input {
  display:inline-block;
  padding:.5rem;
  border-radius:.25rem;
  margin:0 .25rem;
  width:5rem;
  font-size:1.5rem;
  line-height:1rem;
  color:rgba(255,255,255,.9);
  border:0;
  background:rgba(0,0,0,.1);
  text-align:center;
  box-shadow:inset 0 .2rem 2.5rem rgba(0,0,0,.3), inset 0 .125rem .1rem rgba(0,0,0,.1), 0 .0625rem .1rem rgba(255,255,255,.15);
}

input:focus { outline:0; }

            
          
!
            
              $("input").keyup(function(){
  var flake = $(this).val();
  $("s").text(flake);
});
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console