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 class="post-494 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress tag-wordpress tag-cdn">

 <h2 class="page-header" id="wp-cdnjs-reborn-–-speed-up-your-wordpress-site-with-cdn"><a class="anchorjs-link " href="#" aria-label="Anchor" data-anchorjs-icon="" style="font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 1em; line-height: inherit; font-family: anchorjs-icons; position: absolute; margin-left: -1em; padding-right: 0.5em;"></a>
                                <a href="#" title="Permalink to WP CDNjs Reborn – Speed Up your WordPress site with CDN" rel="bookmark">Read More... with fading effect for WordPress</a>
                            </h2>
<p>The text fades out at the bottom and has a "More..." link. Text fade out is nothing new around here. But since this is a slightly different idea and the times-are-a-changin' and we can get a bit more progressive with this idea.
</p><p>
The box will be limited in height by the appropriate property max-height with it's overflow set to hidden. We'll also use relative positioning as we will need that to use absolute positioning on the read-more paragraph, which is locked to the bottom of the box and uses CSS3 gradients to achieve the text fade out.
</p>
<p> 
  <a href="#" class="more-link">
  <span>(more…)</span>
  </a>
</p>
<div>
      <span class="glyphicon glyphicon-circle-arrow-right"></span> Posted In: <a href="#" rel="category tag">Wordpress</a>            <span class="glyphicon glyphicon-tags"></span>
        Tags: <a href="#" rel="tag">WordPress</a>, <a href="#" rel="tag">CDN</a>                            <p><a class="btn btn-primary" href="#">One Comment <span class="glyphicon glyphicon-comment"></span></a></p>
</div>
</div>
              
            
!

CSS

              
                body{width:370px}

.post {
  position: relative;
  overflow: hidden;
}
p .more-link { 
  font-weight: bold;
  position: absolute; 
  bottom: 90px;
  width: 100%; 
  text-align: center; 
  margin-bottom: -10px; /* ajust this */
  padding: 90px 0 20px 0; 
	background-image: linear-gradient(to bottom, transparent, white);
}
              
            
!

JS

              
                
              
            
!
999px

Console