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="row">
                    <div class="col-1-of-3">
                        <div class="card">
                             <div class="card__side card__side--front">
                                 <div class="card__picture card__picture--1">
                                     &nbsp;
                                 </div>
                                 <h4 class="card__heading">
                                     <span class="card__heading-span card__heading-span--1">single player</span>
                                 </h4>
                                 <div class="card__details">
                                    <ul>
                                        <li>&#x2714; single user</li>
                                        <li>&#x2714; one project</li>
                                        <li>&#x2714; e-mail support</li>
                                        <li>&#x2714; one month trial</li>
                                    </ul>
                                 </div>
                            
                             </div>
                             <div class="card__side card__side--back card__side--back-1">
                                <div class="card__cta">
                                    <div class="card__price-box">
                                        <p class="card__price-only">only</p>
                                        <p class="card__price-value"><sup>$</sup>0</p>
                                    </div>
                                    <a href="#" class="btn btn--white">Buy now!</a>
                                </div>
                
                            </div>
                        
                        </div>
                    </div>
    
    
                    <div class="col-1-of-3">
                            <div class="card">
                                    <div class="card__side card__side--front">
                                        <div class="card__picture card__picture--2">
                                            &nbsp;
                                        </div>
                                        <h4 class="card__heading">
                                            <span class="card__heading-span card__heading-span--2">multi player</span>
                                        </h4>
                                        <div class="card__details">
                                           <ul>

                                               <li>&#x2714; 2-5 users</li>
                                               <li>&#x2714; tree project</li>
                                               <li>&#x2714; phone support*</li>
                                               <li>&#x2714; basic statictics</li>
                                               <li>&#x2714; 6 month</li>
                                           </ul>
                                        </div>
                                   
                                    </div>
                                    <div class="card__side card__side--back card__side--back-2">
                                       <div class="card__cta">
                                           <div class="card__price-box">
                                               <p class="card__price-only">only</p>
                                               <p class="card__price-value"><sup>$</sup>50</p>
                                           </div>
                                           <a href="#" class="btn btn--white">Buy now!</a>
                                       </div>
                       
                                   </div>
                               
                               </div>
                    </div>
    
    
                    <div class="col-1-of-3">
                                         <div class="card">
                             <div class="card__side card__side--front">
                                 <div class="card__picture card__picture--3">
                                     &nbsp;
                                 </div>
                                 <h4 class="card__heading">
                                     <span class="card__heading-span card__heading-span--3">team</span>
                                 </h4>
                                 <div class="card__details">
                                    <ul>
                                         <li>&#x2714; unlimited users</li>
                                         <li>&#x2714; unlimited project</li>
                                         <li>&#x2714; 24*7 phone support</li>
                                         <li>&#x2714; detailed statictics</li>
                                         <li>&#x2714; 12 month</li>
                                    </ul>
                                 </div>
                            
                             </div>
                             <div class="card__side card__side--back card__side--back-3">
                                <div class="card__cta">
                                    <div class="card__price-box">
                                        <p class="card__price-only">only</p>
                                        <p class="card__price-value"><sup>$</sup>100</p>
                                    </div>
                                    <a href="#" class="btn btn--white">Buy now!</a>
                                </div>
                
                            </div>
                        
                        </div>
                    </div>
            </div>
              
            
!

CSS

              
                //COLOR
$color-primary:#55c57a;
$color-primary-light:#e96443;
$color-primary-dark:#904e95;

$color-secondary-light: #3a6186;
$color-secondary-dark: #89253e;

$color-tertiary-light: #ff00cc;
$color-tertiary-dark: #333399;


$color-gray-light-1: #f7f7f7;
$color-gray-light-2: #eee;


$color-white: #fff;
$color-gray-dark: #777777;
$color-black: #000;

//FONT
$default-font-size:1.6rem;


//GRID
$grid-width: 114rem;
$gutter-vertical: 8rem;
$gutter-horizontal: 6rem;



//MIXINS
@mixin clearfix {
    &::after {
        content: "";
        display: table;
        clear: both;
    }
}


*,
*::after,
*::before{

    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html{
    // this difines what 1rem is
    font-size: 62.5%;
}

body{
    font-family: lato, sans-serif;
    box-sizing: border-box;
    padding: 10vmin;
}




.row {
    max-width: $grid-width;
    ma-rgin: 0 auto;
  

    &:not(:last-child) {
        margin-bottom: $gutter-vertical;
    }

    @include clearfix;

    [class^="col-"] {
        float: left;

        &:not(:last-child) {
            margin-right: $gutter-horizontal;
        }
    }



    .col-1-of-3 {
        width: calc((100% - 2 * #{$gutter-horizontal}) / 3 );
    
    }
}
 
.card {
    perspective: 150rem;
    -moz-perspective: 150rem;
    position: relative;
    height: 52rem;

    &__side {
    height: 52rem;
    transition: all .8s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba($color-black, .15);

        &--front {
            background-color: $color-white;
        }

        &--back {
            transform: rotateY(180deg);

            &-1 {
                background-image: linear-gradient(to right bottom, $color-secondary-light, $color-secondary-dark);
            }

            &-2 {
                background-image: linear-gradient(to right bottom, $color-primary-light, $color-primary-dark);
            }

            &-3 {
                background-image: linear-gradient(to right bottom, $color-tertiary-light, $color-tertiary-dark);
            }
            
        }

    }
 
    &:hover &__side--front {
        transform: rotateY(180deg);
    }

    &:hover &__side--back {
        transform: rotateY(0);
    }


    //FRONT SIDE STYLE

    &__picture{

        background-size: cover;
        height: 23rem;
        background-blend-mode: screen;
        -webkit-clip-path: polygon(0 0,100% 0,100% 85%,0 100%);
        clip-path: polygon(0 0,100% 0,100% 85%,0 100%);
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;

        &--1 {
            background-image: linear-gradient(to right bottom, $color-secondary-light, $color-secondary-dark);
        }

        &--2 {
            background-image: linear-gradient(to right bottom, $color-primary-light, $color-primary-dark);
        }

        &--3 {
            background-image: linear-gradient(to right bottom, $color-tertiary-light, $color-tertiary-dark);
        }

  
    }

    &__heading {
        font-size: 2.8rem;
        font-weight: 300;
        text-transform: uppercase;
        text-align: right;
        color:$color-white;
        position: absolute;
        top: 12rem;
        right: 2rem;
        width: 75%;

    }

    &__heading-span {
        padding: 1rem 1.5rem;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
        &--1 {
            background-image: linear-gradient(to right bottom, 
            rgba($color-secondary-light, .85),
            rgba( $color-secondary-dark, .85));
        }

        &--2 {
            background-image: linear-gradient(to right bottom, 
            rgba($color-primary-light, .85),
            rgba( $color-primary-dark, .85));
        }

        &--3 {
            background-image: linear-gradient(to right bottom, 
            rgba($color-tertiary-light, .85),
            rgba( $color-tertiary-dark, .85));
        }


    }
    
    &__details {
            padding: 3rem;

         ul {
            list-style: none;
            width: 80%;
            margin: 0 auto;

            li {
                text-align: center;
                font-size: 1.5rem;
                padding: 1rem;

                &:not(:last-child) {
                    border-bottom: 1px solid color-grey light_2;
                }
            }
        }
    }




    // BACK SIDE STYLE

    &__cta {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
    }

    &__price-box {
        text-align: center;
        color: $color-white;
        margin-bottom: 8rem;
    }

    &__price-only {
        font-size: 1.4rem;
        text-transform: uppercase;
    }

    &__price-value {
        font-size: 6rem;
        font-weight: 100;

        sup{
            font-size: 0.65em;
        }
    }
         
}

.btn{
    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba($color-black,.2);


        &::after {
            transform: scaleX(1.4) scaleY(1.6);
            opacity: 0;
        }
    }
    
    &:active {
        transform: translateY(-1px);
    }
    
    &--white {
        background-color: $color-white;
        color: $color-gray-dark;

        &::after {
            background-color: $color-white;
        }
    }

    &--green {
        background-color: $color-primary;
        color: $color-white;

        &::after {
            background-color: $color-primary;
        }
    }
    
    &::after {
        content: "";
        display: inline-block;
        height: 100%;
        width: 100%;
        border-radius: 100px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: all .4s;
    }
    
    &--animated {
        animation: moveInBottom .5s ease-out .75s;
        animation-fill-mode: backwards;
    }

    
    &:link,
    &:visited {
        text-transform: uppercase;
        text-decoration: none;
        padding: 15px 40px;
        display: inline-block;
        border-radius: 100px;
        transition: all .2s;
        position: relative;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console