cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              
<div class="wrapper">
  <div class="flip-container">
  <div class="flipper">
    <div class="front">
      
      <a href="#"><img src="https://goo.gl/SvyFhR" alt="" class="img-responsive"></a>
      <div class="overlay">
        <div class="price">
          $ 9.99
        </div>
      </div>
    </div>
    
    <div class="back">
      <a href="#" class="back-text">
        <h5>FPS Redux Bundle</h5>
        <p class="flip-intro">
            Grab your gun and blast them to hell! Pay only
            <span class="price">$9.99</span> - Over and Out!
         </p>
									
			<p class="flip-link">View this bundle</p>
		</a>
		<a href="#" class="btn btn-primary pull-right"> Add to Cart</a>
		</div>
    </div>
  </div>
</div>

            
          
!
            
              
.wrapper{
  width: 360px;
  height: 243px;
  margin:10px auto;
  position: relative;
  font-family: 'PT Sans Narrow', sans-serif;
  line-height: 1.428571429;
}
.img-responsive {
display: block;
height: auto;
max-width: 100%;
}
/* The flipping effect */
.flip-container {
	-webkit-perspective: 1000;
	-moz-perspective: 1000;
	perspective: 1000;

    -moz-transform: perspective(1000px);
    -moz-transform-style: preserve-3d; 
}

.flip-container:hover .flipper .front {
	z-index: -1000;
}

@media (min-width: 992px) {
	.csstransformspreserve3d .flip-container:hover .flipper, .flip-container.hover .flipper, #flip-toggle.flip .flipper {
		-webkit-transform: rotateY(180deg);
		-moz-transform: rotateY(180deg);
	}
}


.flip-container, .front, .back {
	width: 100%;
	height: 0;
	padding-bottom: 67.6245211%;
	margin-bottom: 30px;
}

.flipper {
	-webkit-transition: 0.5s;
	-webkit-transform-style: preserve-3d;

	-moz-transition: 0.5s;
	-moz-transform-style: preserve-3d;

	transition: 0.5s;
	transform-style: preserve-3d;

	position: relative;

}

.front, .back {
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;

	position: absolute;
	top: 0;
	left: 0;
}

.front {
	background: transparent;
	z-index: 2;
  overflow: hidden;
  border-radius: 6px;
}

.front img {
	width: 100% !important;
}

.back {
	background: #1A1A1A;
	border-radius: 6px;
}

.csstransformspreserve3d .back {
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.front .overlay {
	position: absolute;
	bottom: 15px;
	right: 15px;
	color: #fff;
	font-weight: bold;
	background: #1A1A1A;
	border-radius: 3px;
}

.front .saving {
	display: inline-block;
	background: #1A1A1A;
	color: #f5f5f5;
	font-weight: 700;
	font-size: 16px;
	padding: 2px 5px;
	border-radius: 3px 0 0 3px;
	min-width: 50px;
}

.front .price {
	display: inline-block;
	background: #d0fe00;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 3px;
}

.back-text {
	color: #fff;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	font-size: 20px;
	padding: 30px 20px;
	text-align: center;
   text-decoration: none;
}

.back-text h5 {
	margin-bottom: 5px;
}

a.back-text,
a.back-text:active,
a.back-text:hover {
	color: #fff;
}

.back .flip-intro {
	font-size: 16px;
	font-weight: 400;
	color: #aaa;
	margin-bottom: 2px;
}

.back .flip-link {
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	text-decoration: underline;	
}

.back .btn {
	position: absolute;
	bottom: 15px;
	right: 15px;
	background: #d0fe00;
	color: #111;
	font-weight: 700;
	padding: 2px 5px;
	font-size: 16px;
	border-radius: 3px;
}

.back .steam-txt {
	position: absolute;
	bottom: 23px;
	left: 53px;
	font-size: 11px;
	color: #fff;
}

@media (min-width: 1200px) {
	.back-text {
		padding: 60px 20px;
	}
	.back-text.back-deal {
		padding: 30px 20px;
	}
}


            
          
!
            
              
	(function(window ) {
		'use strict';
	
		// global
		var document = window.document,Modernizr = window.Modernizr;
	
		// https://gist.github.com/edankwan/4389601
		Modernizr.addTest('csstransformspreserve3d', function () {
			var prop = Modernizr.prefixed('transformStyle');
			var val = 'preserve-3d';
			var computedStyle;
			if(!prop) return false;
	
			prop = prop.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-');
	
			Modernizr.testStyles('#modernizr{' + prop + ':' + val + ';}', function (el, rule) {
				computedStyle = window.getComputedStyle ? getComputedStyle(el, null).getPropertyValue(prop) : '';
			});
	
			return (computedStyle === val);
		});
	
	})(window);
    
            
          
!
999px
Loading ..................

Console