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

              
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>FreshInbox #EmailGeek Digest</title>
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">

<style type="text/css">
img {
max-width: 100%;
}
body {
-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;
}
.webversion a{
  text-decoration:none;
}

@media screen and (max-width:480px){
  .body-wrap{
    padding:0px !important;
  }
  .container{
    padding:20px 5px !important;
  }
  .content{
    max-width:100%!important;
  }
}
</style>
<style>
  body{  
    -webkit-text-size-adjust:100%; 
    }
  @media screen and (max-device-width:810px){
    /* no need space for scrollbars in mobile */
    .hero-container{
      width:400px!important;
    }
  }
</style>
<style>
@media screen and (-webkit-min-device-pixel-ratio:0),
(-ms-high-contrast: none), (-ms-high-contrast: active){
  .ball-shadow{
    animation: shadow 4s forwards;
    display:block!important;
    max-height:none!important;
    position:relative;
  }
  .ball{
    z-index:100;
    animation: drop 4s forwards;
    position:relative;
  }
  .showlater,.showlater2{
    opacity:0;
    animation: showlater 0.8s 5s forwards;
  }
  .showlater2{
    animation-delay: 5.2s;
  }
}
@keyframes drop{
  0%{
    opacity:0;
  }
  25%{
    opacity:0;
    transform:translateY(-30px);    
  }
  80%{
    opacity:0.9;
  }
  100%{  
    opacity:1;
    transform:translateY(30px);
  }
}
@keyframes shadow{
  0%{
    opacity:0;
  }
  40%{
    opacity:0;
    transform: scale(0.8);    
  }
  100%{  opacity:1;
    transform: scale(1);    
  }
}
@keyframes showlater{
  from{opacity:0;}
  to{opacity:1;}
}

</style>
</head>
<body bgcolor="#ffffff" style="margin: 0; padding: 0;">
<div style="position:relative;">
<div class="preheader" style="mso-hide:all;display:none;max-height:0px;overflow:hidden;">
 &nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;
</div>

<div class="outer">
<!-- body -->
<table width="100%" class="body-wrap" bgcolor="#ffffff" style="margin: 0;padding-top:5px;">
  <tr>
    <td style="font-size:0;"></td>
    <td width="600" class="container" bgcolor="#FFFFFF" style="font-family: 'Helvetica Neue', Helvetica; margin: 0 auto; max-width: 600px !important; padding: 20px">


      <!-- content -->
      <div class="content" style="display: block; font-family: 'Helvetica Neue', Helvetica; margin: 0 auto; max-width: 550px; padding: 0">
      <table style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0; width: 100%">
        <tr>
          <td style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0">
          <table class="showlater" cellpadding=0 cellspacing=0 width="100%"><tr>

          <td width=190 valign="middle" height="30" style="font-family: 'Helvetica Neue', Helvetica; font-size: 14px; font-weight: normal;  margin: 0 0 10px; padding: 0;"><a href="http://freshinbox.com"><img src="http://freshinbox.com/images/fi-logo-large.jpg" width=150 border=0 style="display:block;" alt="FreshInbox"></a></td>
          <td width=60 valign="middle" height="30" style="font-family: 'Helvetica Neue', Helvetica; font-size: 15px; font-weight: normal;  margin: 0 0 10px; padding: 0;" ><a href="http://freshinbox.com/blog" style="color:#555555;text-decoration:none;font-weight:400;">Blog</a></td>
          <td width=100 valign="middle" height="30" style="font-family: 'Helvetica Neue', Helvetica; font-size: 15px; font-weight: normal;  margin: 0 0 10px; padding: 0;"><a href="http://freshinbox.com/resources" style="color:#555555;text-decoration:none;font-weight:400;">Resources</a></td><td align=right>


          </td>
          </tr></table>


          <div class="intro" style="width:100%;text-align:center;">
            <BR><BR>
            <div class="ball" style=""><img src="http://freshinbox.com/images/blog/20181022-fadein/football-pixabay-200x200.png" width="250"></div>
            <!--[if !mso]><!-->
            <div class="ball-shadow" style="display:none;max-height:0px;overflow:hidden;"><img src="http://freshinbox.com/images/blog/20181022-fadein/football-shadow.png" width="250" height="60"></div>
            <!--<![endif]-->
          </div>


    <!-- inner content -->
          <table id="rr" style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0; width: 100%">
            <tr>
              <td id="r1" style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 8px;">

              <div class="showlater2" style="padding:5px 20px;margin:10px 0px">



              <h2 style="color: #000; font-family: 'Helvetica Neue', Helvetica; font-size: 30px; font-weight: 200; line-height: 1.1; margin: 0; padding: 0">Full Page Animations in Email</h2>
              <BR>
              <h2 style="color: #000; font-family: 'Helvetica Neue', Helvetica; font-size: 24px; font-weight: 200; line-height: 1.1; margin: 0; padding: 0">What are the supported clients?</h2>
              <BR>
              <p style="font-family: 'Helvetica Neue', Helvetica; font-size: 14px; font-weight: normal; margin: 0; padding: 0">The animation is displayed on:
              <ul style="font-family: 'Helvetica Neue', Helvetica; font-size: 14px; font-weight: normal; ">
              <li>iOS Mail (iPhone/iPad)</li>
              <li>Apple Mail</li>
              <li>Samsung Mail</li>
              </ul>
              </p>

              <p style="font-family: 'Helvetica Neue', Helvetica; font-size: 14px; font-weight: normal; margin: 0 0 10px; padding: 0">
              Non-supported clients will display the hero without animation.
              </p><BR>
              <center>
              <table class="mobi-btn" style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0; width: 500">
                <tr>
                  <td class="padding" style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 10px 0">
                    <p style="font-family: 'Helvetica Neue', Helvetica; font-size: 14px; font-weight: normal; margin: 0 0 10px; padding: 0"><a href="https://freshinbox.com/blog/full-page-intro-animations-in-email/?utm=codepen" target=_new class="btn-primary" style="background: #348eda; border-color: #348eda; border-radius: 25px; border-style: solid; border-width: 10px 20px; color: #FFF; cursor: pointer; display: inline-block; font-family: 'Helvetica Neue', Helvetica; font-weight: bold; line-height: 2; margin: 0 10px 0 0; padding: 0; text-align: center; text-decoration: none">Learn more</a></p>
                  </td>
                </tr>
              </table>
              </center>


              </div>

</td></tr>
<!-- row -->

<!-- row -->
<tr><td id="r3" style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 8px;">










            </td>
          </tr>
        </table>
        <!-- /inner content -->
        </td>
      </tr>
    </table>



      </div>
      <!-- /content -->
      
    </td>
    <td style="font-size:0;"></td>
  </tr>
</table>
<!-- /body -->
<!-- footer -->
<table class="footer-wrap" style="clear: both !important; font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0; width: 100%">
  <tr>
    <td style="font-family: 'Helvetica Neue', Helvetica; margin: 0; padding: 0"></td>
    <td class="container" style="clear: both !important; display: block !important; font-family: 'Helvetica Neue', Helvetica; margin: 0 auto; max-width: 600px !important; padding: 0">
      <!-- content -->
      <!-- /content -->
      
    </td>
    <td></td>
  </tr>
</table>
<!-- /footer -->




</div>

<!-- outer -->
</div>

</body>
</html>​
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console