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

              
                <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"/>


<div class="page-container">

   <div class="opening">

      <div class="flip-me">


        <div class="front">
          <div class="price-table">
            <section class="head">
              <h1><span class="bold">Average</span> Pass</h1>
              <i class="fa fa-barcode"></i>
            </section>
            <section class="price">
              <h2>
                <span class="dollar">$</span>199<span class="year">/Year</span>
              </h2>
            </section>
            <section class="contents">
              <ul>
                <li><span class="bold">Unlimited</span> Videos</li>
                <li><span class="bold">Unlimited</span> Images</li>
                <li><span class="bold">Unlimited</span> PSDs</li>
                <li>A years worth of new releases</li>
              </ul>
            </section>
            <button class="submit">Become a Member</button>
          </div>
        </div>
      
 
        <div class="back add-films">
          <div class="price-table ">
            <section class="head">
              <h1>Make it <span class="bold">Ultimate</span></h1>
              <i class="fa fa-barcode"></i>
            </section>
             <section class="contents">
               <span class="ultimate">Add <span class="bold">Unlimited</span> Films</span>
            </section>
            <section class="price">
           
              <h2>
                <span class="year">Only</span><span class="dollar">$</span>99<span class="year">more</span>
              </h2>
            </section>
           
            <button class="submit">+ Add Films</button>
            <a href="#" class="proceed-anyway">Proceed without adding films &#8594;</a>
          </div>
        </div>

      </div>
    </div>


   <div class="opening">
      <div class="price-table">
        <section class="head">
          <h1><span class="bold">Ultimate</span> Pass</h1>
          <i class="fa fa-barcode"></i>
        </section>
        <section class="price">
          <h2>
            <span class="dollar">$</span>299<span class="year">/Year</span>
          </h2>
        </section>
        <section class="contents">
          <ul>
            <li><span class="bold">Unlimited</span> Videos</li>
            <li><span class="bold">Unlimited</span> Images</li>
            <li><span class="bold">Unlimited</span> PSDs</li> 
            <li><span class="bold">Unlimited</span> films</li>
            <li>A years worth of new releases</li>
          </ul>
        </section>
        <button class="submit">Become a Member</button>
      </div>
  </div>
</div>
              
            
!

CSS

              
                @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Kreon:300,400,700);

@import "compass";

// Base Colors
$dark-grey: #5d5d5d;
$medium-grey: #c5c5c5;
$light-grey: #e6e6e6;
$white: white;

// Color Variables
$background-color: $dark-grey;


// Mixins & Objects
%triangle-bottom {
	content: "";
	display: block;
	position: absolute;
	bottom: -16px;
	left: 0;
	background: -webkit-linear-gradient(-135deg, $white 50%, transparent 50%) 0 50%, -webkit-linear-gradient(-45deg, $white 50%, transparent 50%) 0 50%, rgba(0, 0, 0, 0);
	background-repeat: repeat-x;
	background-size: 16px 16px, 16px 16px, cover, cover;
	height: 16px;
	width: 100%;
}
%circle-cut {
	position: relative;
	&:before {
		content: "";
		display: block;
		width: 13px;
		height: 13px;
		background-color: $background-color;
		position: absolute;
		right: -22px;
		border-radius: 50%;
		z-index: 2000;
		bottom: -7px;
	}
	&:after {
		@extend :before;
		left: -22px;
	}
}
button {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 0;
	border: 2px solid $medium-grey;
	background: none;
	text-align: center;
  font-size:1.35em;
	transition: all 200ms;
	&:hover {
		border-radius: 3px;
		background-color: $medium-grey;
		color: $white;
	}
}

// Top-Level styles
* {
	box-sizing: border-box;
}

body {
	font-family: 'Kreon', serif;
	background-color: $dark-grey;
	color: $medium-grey;
}
.bold {
	font-weight: 700;
}

// Elements
.page-container {
	width: 880px;
	position: relative;
	padding-top: 10px;
	padding-bottom: 30px;
	margin: 0 auto;
	overflow: hidden;
}
.add-films {
  h1 {font-style:italic;color:$light-grey;}
	.price-table {
		padding-bottom:18px;
		text-align:right;
	}
	.dollar {line-height:2.5;}
	.year {
		vertical-align:middle;
		padding:0 10px 0 10px;
		font-size: .2em;
	}
	.contents {
		text-align:center;
		font-size:32px;
		margin-top:55px;
		margin-bottom:0;
	}
	a.proceed-anyway {
		display:block;
		color:$medium-grey;
	}
	.price {
		margin-bottom:40px;
		margin-top:-40px;
		margin-left:0;
		text-align:center;
		h2 {
			line-height:1.5em;
		}
	}
	button {
		margin-bottom:10px;
    font-size:1em;
	}
}

.opening {
	// overflow: hidden;
	// display: block;
	// height: 120%;
	// max-height: 800px;
	// position: relative;
	// transition: all 100ms 1400ms;
	float: left;
	margin-right: 40px;
	perspective: 1000;
	&:nth-child(2) .price-table {
		transition-delay: 700ms;
	}
	.arise & {
		border-bottom: 0;
	}
}
// Flipper styles and actions
.flip-me {
	position: relative;
	transition: 0.6s;
	transform-style: preserve-3d;
	.flip & {transform: rotateY(180deg);}
}
.opening, .front, .back {
	display:inline-block;
}
.front, .back {
	backface-visibility: hidden;
	transform-style:preserve-3d;
}
.front {
  z-index: 1;
}
.back {
	position:absolute;
	top:0;
	left:0;
  	transform: rotateY(-180deg);
}

.price-table {
	display: block;
	position: relative;
	width: 400px;
	bottom: -1000px;
	margin-bottom: 20px;
	margin-right: 3%;
	padding: 0 1em;
	border-radius: 7px 7px 0px 0px;

	background-color: $white;
	text-align: center;

	transition: bottom 400ms 200ms ease-in-out;
	.arise & {bottom: 0px;}
	&:after {@extend %triangle-bottom;}
}

.head {
	padding: 25px 7px;
	border-bottom: 1px solid $light-grey;
	@extend %circle-cut;
	text-align: left;
}

h1 {
	font-weight: 300;
	line-height: 0;
	font-size: 1.5em;
	display: inline-block;
}

.fa-barcode {
	float: right;
	font-size: 30px;
	font-weight: bold;
}

h2 {
	line-height: 2em;
	margin: 0;
}

.dollar {
	font-size: .5em;
	vertical-align: top;
	line-height: 3.3;
}

.year {
	font-size: .3em;
	font-weight: 300;
	text-transform: uppercase;
}

.price {
	font-size: 70px;
	color: $light-grey;
	margin-left: 20px;
	margin-bottom: -30px;
}

.submit {
	margin-bottom: 30px;
	color: $light-grey;
}

.contents {
	text-align: left;
	li {
		list-style: none;
    &:last-child{margin-top:1em;}
	}
	line-height: 2;
	font-weight: 300;
	color: $light-grey;
	ul {
		margin: 0;
		padding-left: 20px;

	}
	margin-bottom: 70px;
}
              
            
!

JS

              
                $(document).ready(function() {
    $("body").addClass("arise");
  $(".submit").click(function(){
    $(this).closest(".opening").toggleClass("flip");
  });

});
              
            
!
999px

Console