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="warp">
  
<div class="oneemail"></div>
<div class="letter">U GOT MAIL!</div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Changa+One);
/*=====CSS RESETS====*/
* {
  padding:0;
  margin:0;

}
/*=====WARP====*/
.warp {
  margin:auto;
  width:240px;
}
/*=====FONT + BG COLOR====*/
body {
font-family: 'Changa One', cursive;
background-color:gray;
}
/*=====LETTER ELEMENT====*/
.letter {
  border-radius:4px;
  height:70px;
  width:200px;
  color:#ff8e00;
  background-color:white;
  border:1px solid gray;
  position:absolute;
  font-size:30px;
  top:60px;
  z-index:-9;
  left:43%;
  text-align:center;
    transition: translate 1s;
-moz-transition: -webkit-transform 1s ease-out; 1s; /* Firefox 4 */
-webkit-transition: -webkit-transform 1s ease-out; 1s; /* Safari and Chrome */
-o-transition: -webkit-transform 1s ease-out; 1s; /* Opera */
}
/*=====ONE LETTER ELEMENT====*/
.oneemail{
  height:130px;
  width:240px;
  background-color:#B0B0B0;
  position:absolute;
  top:20px;
  z-index:-5;
    transition: translate 1s;
-moz-transition: -webkit-transform 1s ease-out; 1s; /* Firefox 4 */
-webkit-transition: -webkit-transform 1s ease-out; 1s; /* Safari and Chrome */
-o-transition: -webkit-transform 1s ease-out; 1s; /* Opera */
  animation: Glow 5s linear 2s infinite alternate;
/* Firefox: */
-moz-animation: Glow 2s linear 2s infinite alternate;
/* Safari and Chrome: */
-webkit-animation: Glow 2s linear 2s infinite alternate;
/* Opera: */
-o-animation: Glow 2s linear 2s infinite alternate;
}
.txtinfo {
text-align:center;
font-size:30px;
margin-top:190px;
color:white;
  -webkit-transform: translateZ(0);
}
.oneemail:after {
  content: "";
  border-top: 0px solid transparent;
  border-bottom: 60px solid transparent;
  border-left: 120px solid  white;
  top:2px;
  position:absolute;
  z-index:-4;
  right:0;
}
.oneemail:before {
  content: "";
  top:2px;
  outline: 50px solid transparent;
  border-top: 0px solid transparent;
  border-bottom: 60px solid transparent;
  border-left: 121px solid  white;
  position:absolute;
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  transform: scaleX(-1);
  z-index:-4;
  left:0;
}

.oneemail:hover{
  height:130px;
  width:240px;
  background-color:#B0B0B0;
  position:absolute;
  top:20px;
  z-index:-5;
  transform: translate(0px,40px);
-ms-transform: translate(0px,40px); 
-webkit-transform: translate(0px,40px);
-o-transform: translate(0px,40px);
-moz-transform: translate(0px,40px);
  transition: translate 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
    animation: Glow 0s linear 0s infinite alternate;
/* Firefox: */
-moz-animation: Glow 0s linear 0s infinite alternate;
/* Safari and Chrome: */
-webkit-animation: Glow 0s linear 0s infinite alternate;
/* Opera: */
-o-animation: Glow 0s linear 0s infinite alternate;
}


.oneemail:hover + .letter { 
  -webkit-transform: translateZ(0);
    transform: translate(0px,-35px);
-ms-transform: translate(0px,-35px); 
-webkit-transform: translate(0px,-35px);
-o-transform: translate(0px,-35px);
-moz-transform: translate(0px,-35px);
  transition: translate 1s;
-moz-transition: all 1s; /* Firefox 4 */
-webkit-transition: all 1s; /* Safari and Chrome */
-o-transition: all 1s; /* Opera */
  
}

  @keyframes Glow
{
from { box-shadow:0px 0px 25px #ff8e00;}
to { box-shadow:0px 0px 0px #ff8e00;}
}

@-moz-keyframes Glow /* Firefox */
{
from { box-shadow:0px 0px 25px #ff8e00;}
to { box-shadow:0px 0px 0px #ff8e00;}
}

@-webkit-keyframes Glow /* Safari and Chrome */
{
from { box-shadow:0px 0px 25px #ff8e00;}
to { box-shadow:0px 0px 0px #ff8e00;}
}

@-o-keyframes Glow /* Opera */
{
from { box-shadow:0px 0px 25px #ff8e00;}
to { box-shadow:0px 0px 0px #ff8e00;}
}
              
            
!

JS

              
                
              
            
!
999px

Console