Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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="one">
<div class="chewie"><i class="fab fa-google"></i></div>
  
<div class="two">
<div style="float: left;padding: 12px; display: inline-block;"><i class="fas fa-search" style="font-size: 14px; margin-right: 10px;"></i> who is <span class="name">the cutest person on the planet</span>? <bl>|</bl></div>
<div style="float: right;padding: 12px; font-size: 11px; display: inline-block;"><i class="fas fa-microphone" style="font-size: 14px; margin-right: 10px;"></i></div>
</div>
  
<div class="three"></div>
<div class="four"></div>
<div class="star" style="left: 22%; top: 40%;"><i class="fas fa-star"></i></div>
<div class="star" style="left: 7%; bottom: 20%;"><i class="fas fa-star"></i></div>
  
<div class="five">
<div class="six">
 ੈ♡‧₊˚ chewie lockhart<i>!</i>
<span class="subtitle">smooth like butter, like a criminal undercover!</span>
</div>
  
<div class="seven">
Croissant caramels muffin bear claw brownie. Marshmallow jelly-o pie icing toffee chocolate cake. Gingerbread toffee sweet roll candy canes. Cupcake powder gummi bears candy. Carrot cake sweet roll caramels fruitcake marshmallow pudding donut jelly-o cheesecake. Danish marshmallow toffee halvah gummi bears. Pudding chupa chups toffee. Halvah marshmallow sugar plum toffee toffee. Caramels tart wafer cake jelly-o sesame snaps tart carrot cake bear claw.
</div>
  
</div>


  
</div>

<style>
  @import url(https://fonts.googleapis.com/css?family=Work+Sans|Karla|Roboto|Space+Mono);
  
</style>

<link rel="stylesheet" href="https://kit-free.fontawesome.com/releases/latest/css/free.min.css" media="all">
              
            
!

CSS

              
                body {
  background: white;
}

:root {
  --main-color: #e7e3f3;
  --accent-color: #afabbe;
  --icon-1: url('https://64.media.tumblr.com/ae6ab5cfad5fc568f59eb66f89eac92e/tumblr_inline_ooz39pfGOG1sordey_100.gif');
  --icon-2: url('https://64.media.tumblr.com/c5f3fd6ce7ee93262e4d6bf79ee0311d/tumblr_inline_ooz39vXfxG1sordey_100.gifv')
}

#one {
  width: 425px;
  height: 200px;
  position: relative;
  margin: auto;
}

.two {
  width: 370px;
  height: 40px;
  font: 11px 'space mono';
  background: rgba(255,255,255);
  border-radius: 20px;
  box-shadow: 0px 0px 5px rgba(140,140,140,0.2);
  right: 3%; top: 3%;
  position: absolute;
}

.two i {font-size: 11px!important; color: #5d5d5d;}
.two span.name {color: var(--accent-color); text-shadow: 0px 0px 2px var(--main-color);}

.chewie {
  font-size: 16px;
  color: var(--main-color);
  left: 3%; top: 8%;
  position: absolute;
}

.three {
  width: 55px;
  height: 55px;
  background-size: cover;
  background-image: var(--icon-2);
  border-radius: 15px;
  box-shadow: 0px 0px 5px rgba(140,140,140,0.1);
  top: 30%; left: 5%;
  position: absolute;
}

.four {
  width: 55px;
  height: 55px;
  background-size: cover;
  background-image: var(--icon-1);
  border-radius: 15px;
  box-shadow: 0px 0px 5px rgba(140,140,140,0.1);
  top: 60%; left: 16%;
  position: absolute;
}

.five {
  width: 280px;
  height: 130px;
  background: rgba(255,255,255);
  border-radius: 20px;
  box-shadow: 0px 0px 5px rgba(140,140,140,0.2);
  right: 3%; bottom: 8%;
  position: absolute;
}

.six {
  font: 16px 'space mono';
  color: var(--accent-color);
  text-shadow: 0px 0px 3px var(--main-color);
  text-transform: lowercase;
  text-align: center;
  position: relative;
  line-height: 15px;
  padding: 15px;
  display: block;
}

.six span.subtitle {
  font: 6px 'work sans';
  color: #5d5d5d;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 5px;
}

.seven {
  width: 245px;
  height: 50px;
  font: 9px 'work sans';
  color: #5d5d5d;
  text-align: justify;
  line-height: 16px;
  overflow: auto;
  padding: 10px;
  position: relative;
  margin: auto;
  margin-top: -10px;
}

.star {
  font-size: 16px;
  text-shadow: 2px 2px var(--main-color);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--accent-color);
  color: var(--main-color);
  position: absolute;
  animation: tada 1.3s infinite;
}

bl {color: #b1b1b1; animation: blink 1.3s step-end infinite;}

 @keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: #b1b1b1;
  }
}

@-webkit-keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}
  
              
            
!

JS

              
                
              
            
!
999px

Console