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

              
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">

<div id="tri-d-wrapper">
    <figure id="img-wrapper">
        <img src="https://d13yacurqjgara.cloudfront.net/users/43342/screenshots/1973147/studiojq2015_explore62_1x.jpg" alt="Preview Image">
        <figcaption>
            <h2 class="title">Hover Design Interaction</h2>
            <div class="bottom-detail">
                <p>Some little detail here, things about the designs summary lorem anything related just to make this look long text.</p>
                <ul class="social-icons">
                    <li><a class="fa fa-facebook" href="#"></a></li>
                    <li><a class="fa fa-dribbble" href="#"></a></li>
                    <li><a class="fa fa-twitter" href="#"></a></li>
                    <li><a class="fa fa-behance" href="#"></a></li>
                </ul>
            </div>
        </figcaption>
    </figure>
</div>
              
            
!

CSS

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

* {
font-family: 'Roboto', sans-serif;
}

body {
background: #3498db;
overflow: hidden;
}

#tri-d-wrapper {
-webkit-perspective: 300px;
perspective: 300px;
position: absolute;
height: 100%;
width: 100%;
}

#img-wrapper {
width: 350px;
background: #3498db;
margin: 0;
position: absolute;
cursor: pointer;
border-radius: 3px;
overflow: hidden;
top: 50%;
left: 50%;
margin-left: -175px;
margin-top: -131px;
-webkit-transform: rotateX(30deg) scale(.65);
transform: rotateX(30deg) scale(.65);
-webkit-transition: .3s all ease;
transition: .3s all ease;
box-shadow: 0 15px 20px 5px rgba(0,0,0,.2);
}

#img-wrapper:hover {
-webkit-transform: rotateX(0deg) scale(1);
transform: rotateX(0deg) scale(1);
box-shadow: none;
}

#img-wrapper img {
width: 100%;
margin: 0;
position: relative;
display: block;
-webkit-transition: .3s all ease;
transition: .3s all ease;
}

#img-wrapper:hover img {
-webkit-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
}

#img-wrapper:hover figcaption {
background: rgba(0,0,0,.75);
}

#img-wrapper:hover figcaption h2 {
opacity: 1;
padding-left: 20px;
-webkit-transition: .3s all ease .3s;
transition: .3s all ease .3s;
}

#img-wrapper:hover figcaption .bottom-detail {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}

#img-wrapper:hover figcaption .bottom-detail p {
opacity: 1;
top: 0;
-webkit-transition: .3s all ease .5s;
transition: .3s all ease .5s;
}

#img-wrapper:hover figcaption .bottom-detail .social-icons li a {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
-webkit-transition: .3s all ease .5s;
transition: .3s all ease .5s;
}

#img-wrapper:hover figcaption .bottom-detail .social-icons li a.fa-twitter {
color: #50ABF1;
-webkit-transition: .3s all ease .7s;
transition: .3s all ease .7s;
}

#img-wrapper:hover figcaption .bottom-detail .social-icons li a.fa-facebook {
color: #3B599A;
}

#img-wrapper:hover figcaption .bottom-detail .social-icons li a.fa-dribbble {
color: #EC4989;
-webkit-transition: .3s all ease .6s;
transition: .3s all ease .6s;
}

#img-wrapper:hover figcaption .bottom-detail .social-icons li a.fa-behance {
color: 1769ff;
-webkit-transition: .3s all ease .8s;
transition: .3s all ease .8s;
}

figcaption {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
-webkit-transition: .3s all ease;
transition: .3s all ease;
}

figcaption h2 {
margin: 0;
color: white;
font-size: 22px;
line-height: 70px;
opacity: 0;
padding-left: 0;
padding-right: 20px;
font-weight: 300;
}

figcaption .bottom-detail {
position: absolute;
width: 100%;
bottom: 0;
top: 70px;
background: white;
-webkit-transform: translateY(100%);
-ms-transform: translateY(100%);
transform: translateY(100%);
-webkit-transition: .3s all ease .1s;
transition: .3s all ease .1s;
}

.bottom-detail p {
font-size: 17px;
opacity: 0;
top: 20px;
padding-left: 20px;
padding-right: 20px;
color: #999;
font-weight: 300;
line-height: 1.5;
}

.bottom-detail .social-icons {
padding: 0 20px;
box-sizing: border-box;
margin: 0;
position: absolute;
bottom: 0;
width: 100%;
list-style: none;
text-align: center;
}

.social-icons li {
display: inline-block;
margin: 0;
}

.social-icons li a {
font-size: 22px;
text-decoration: none;
padding: 22px 15px;
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
}

.fa-twitter {
color: #50ABF1;
}

.fa-facebook {
color: #3B599A;
}

.fa-dribbble {
color: #EC4989;
}

.fa-behance {
color: #1769ff;
}

.copyright {
position: fixed;
right: 15px;
bottom: 15px;
font-family: "Roboto";
}
.copyright span {
line-height: 36px;
color: rgba(255, 255, 255, 0.75);
margin-right: 10px;
font-weight: 300;
}
.copyright span a {
font-weight: 400;
text-decoration: none;
color: #ea4c89;
}
.copyright .balapa {
width: 30px;
height: 30px;
display: block;
background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/111167/profile/profile-512_4.jpg");
background-size: cover;
border-radius: 50%;
border: 5px solid rgba(255, 255, 255, 0.75);
float: right;
}
              
            
!

JS

              
                // copy
balapaCop("3D Hover Interaction", "rgba(255,255,255,.5)");
              
            
!
999px

Console