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="container">
  <div class="row show-grid">
    <div class="col-lg-12">
      <h1 class="heading">
        Flat Origami Article <small>Pure CSS, Responsive</small></h1>
    </div>
  </div>
</div>

<div class="container">
  <div class="row show-grid">
    <div class="col-lg-12">
      
      
      <div id="slide">
        
        <!-- Ribbons -->
        <span class="ribbon-a"></span>
        <span class="ribbon-b"></span>
        <span class="ribbon-c"></span>
        <span class="ribbon-d"></span>
        
        <!-- Article -->
        <article class="article">
          <figure>
            <img src="https://www.redbullcontentpool.com/resources/2013/07/09/00001-01000/P-20130709-00550/image_proxy_large.jpg" />
          </figure>
          <span class="article-heading">
            Article Heading
          </span>
          <span class="article-snippet">
            Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet...
          </span>
          <a class="article-url" href="#" title="Continue Reading">Continue Reading</a>
          <ul class="article-social">
            <li>
              <a href="#"><i class="icon-facebook"></i></a>
              <a href="#"><i class="icon-twitter"></i></a>
              <a href="#"><i class="icon-google-plus"></i></a>
            </li>
          </ul>
        </article>
        
      </div>
      
      
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import "https://netdna.bootstrapcdn.com/font-awesome/3.0/css/font-awesome.css";

html, body {
  background: #f8f8f8;
  padding: 0px 0;}

h1 { margin-bottom: 25px;}

#slide {
  display: block;
  position: relative;
  width: 100%;
  height: 460px;
  background: #fff;
  -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.1);}

  /* Focus Animation */
  #slide .article {
    -webkit-transform: scale3d(1.02, 1.02, 0.1);
    -webkit-transition: 0.1s linear 0s;
         -o-transition: 0.1s linear 0s;
            transition: 0.1s linear 0s;}
  #slide:hover .article {
    -webkit-transform: scale3d(1.0, 1.0, 0.1);
    -webkit-transition: 0.1s linear 0s;
         -o-transition: 0.1s linear 0s;
            transition: 0.1s linear 0s;}

/* -----------------------
 * Shapes - Ribbon A
 */
.ribbon-a {
  display: block;
  position: absolute;
  top: 200px;
  left: 0px;
  width: 150px;
  height: 20px;
  background: rgba(231,76,60,1.0);}

  .ribbon-a:before {
    content: " ";
    position: absolute;
    top: -15px;
	  width: 0; 
	  height: 0; 
	  border-left: 150px solid transparent;
	  border-bottom: 15px solid rgba(231,76,60,1.0);}
  
.ribbon-a:after {
    content: " ";
    position: absolute;
    top: 20px;
	  width: 0; 
	  height: 0; 
	  border-left: 150px solid transparent;
	  border-top: 30px solid rgba(231,76,60,1.0);}

/* -----------------------
 * Shapes - Ribbon B
 */
.ribbon-b {
  display: block;
  position: absolute;
  top: 185px;
  left: 150px;
  width: 300px;
  height: 35px;
  background: rgba(192,57,43,1.0);}

  .ribbon-b:before {
    content: " ";
    position: absolute;
    top: -40px;
	  width: 0; 
	  height: 0; 
	  border-left: 300px solid transparent;
	  border-bottom: 40px solid rgba(192,57,43,1.0);}
 
.ribbon-b:after {
    content: " ";
    position: absolute;
    top: 35px;
	  width: 0; 
	  height: 0; 
	  border-right: 300px solid transparent;
	  border-top: 30px solid rgba(192,57,43,1.0);}

/* -----------------------
 * Shapes - Ribbon C
 */
.ribbon-c {
  display: block;
  position: absolute;
  top: 200px;
  right: 0px;
  width: 150px;
  height: 20px;
  background: rgba(231,76,60,1.0);}

  .ribbon-c:before {
    content: " ";
    position: absolute;
    top: -15px;
	  width: 0; 
	  height: 0; 
	  border-right: 150px solid transparent;
	  border-bottom: 15px solid rgba(231,76,60,1.0);}
  
.ribbon-c:after {
    content: " ";
    position: absolute;
    top: 20px;
	  width: 0; 
	  height: 0; 
	  border-right: 150px solid transparent;
	  border-top: 30px solid rgba(231,76,60,1.0);}

/* -----------------------
 * Shapes - Ribbon D
 */
.ribbon-d {
  display: block;
  position: absolute;
  top: 185px;
  right: 150px;
  width: 300px;
  height: 35px;
  background: rgba(192,57,43,1.0);}

  .ribbon-d:before {
    content: " ";
    position: absolute;
    top: -40px;
	  width: 0; 
	  height: 0; 
	  border-right: 300px solid transparent;
	  border-bottom: 40px solid rgba(192,57,43,1.0);}
 
.ribbon-d:after {
    content: " ";
    position: absolute;
    top: 35px;
	  width: 0; 
	  height: 0; 
	  border-left: 300px solid transparent;
	  border-top: 30px solid rgba(192,57,43,1.0);}

/* -----------------------
 * Article
 */
.article {
  display: block;
  position: absolute;
  width: 320px;
  top: 30px;
  left: 50%;
  margin-left: -160px;
  background: rgba(168,46,25,1);}

  .article:after {
    content: " ";
    width: 320px;
    height: 30px;
    background: rgba(0,0,0,0.1);
    position: absolute;
    bottom: -20px;
    left: 0;
    border-radius: 50%;
    -webkit-filter: blur(7px);
       -moz-filter: blur(7px);
        -ms-filter: blur(7px);
         -o-filter: blur(7px);
            filter: blur(7px);}

.article figure {
  display: block;
  margin: 0;
  position: relative;
  top: 0;
  left: 0;
  height: 100px;
  overflow: hidden;}

  .article figure img {
    position: relative;
    top: 0;
    width: 320px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);}

.article-heading {
  float: left;
  position: relative;
  top: 0;
  width: 340px;
  height: 75px;
  line-height: 75px;
  font-weight: 500;
  padding: 0 20px;
  position: relative;
  left: -10px;
  background: rgba(231,76,60,1.0);
  border-bottom: 3px solid rgba(131,34,18,1);
  text-shadow: -1px -1px 0px rgba(0,0,0,0.2);
  line-height: 75px;
  color: #fff;
  font-size: 24px;}

.article-heading:before {
  position: absolute;
  top: 74px;
  left: 0;
  content: "";
	width: 0; 
	height: 0; 
	border-left: 10px solid transparent;
	border-top: 10px solid rgba(131,34,18,1);}

.article-heading:after {
  position: absolute;
  top: 74px;
  right: 0;
  content: "";
	width: 0; 
	height: 0; 
	border-right: 10px solid transparent;
	border-top: 10px solid rgba(131,34,18,1);}

.article-snippet {
  float: left;
  position: relative;
  width: 320px;
  padding: 20px;
  background: rgba(168,46,25,1);
  color: #fff;}

.article-url {
  float: left;
  position: relative;
  width: 320px;
  padding: 15px 20px;
  background: rgba(131,34,18,1);
  color: #fff;}
  
.article-url:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(106,27,14,1.0);
  -webkit-transition: all 0.2s ease-in;
     -moz-transition: all 0.2s ease-in;
       -o-transition: all 0.2s ease-in;
          transition: all 0.2s ease-in;}


/* -----------------------
 * Unfold
 */
.article-social {
  width: 120px;
  height: 40px;
  position: absolute;
  bottom: -40px;
  float: left;
  box-sizing: border-box;
  font-size: 13px;
  margin: 0; 
  padding: 0;}

.article-social li {
  color: #fff;
  background: rgba(168,46,25,1);
  padding: 0 0 0 20px;
  line-height: 40px;}

  .article-social li a {
    display: inline-block;
    height: 26px;
    width: 26px;
    border-radius: 13px;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
    color: rgba(192,57,43,1.0);
    background: #fff;}

.article-social li {
  -webkit-transform-origin: 50% 0%;
       -o-transform-origin: 50% 0%;
          transform-origin: 50% 0%;
  -webkit-transform: perspective(250px) rotateX(-90deg);
       -o-transform: perspective(250px) rotateX(-90deg);
          transform: perspective(250px) rotateX(-90deg);
  -moz-box-shadow: 0px 2px 10px rgba(0,0,0,0.05);
  -webkit-transition: 0.2s linear 0.2s;
       -o-transition: 0.2s linear 0.2s;
          transition: 0.2s linear 0.2s;}

.article:hover .article-social li {
  -webkit-transform: perspective(350px) rotateX(0deg);
       -o-transform: perspective(350px) rotateX(0deg);
          transform: perspective(350px) rotateX(0deg);
  -webkit-transition: 0.2s linear 0s;
       -o-transition: 0.2s linear 0s;
          transition: 0.2s linear 0s;}

.article-social li:after {
  position: absolute;
  top: 0;
  right: -40px;
  content: "";
	width: 0; 
	height: 0; 
	border-right: 40px solid transparent;
	border-top: 40px solid rgba(168,46,25,1);}
              
            
!

JS

              
                
              
            
!
999px

Console