skew depth css3

by SebastianPataneMasuelli

HTML

<article>
    <section>
        
    </section>
</article>

CSS

article {
    width: 200px;
    height: 400px;
    position: relative;
    border: 0px solid #ccc;
    margin: 0 auto;
    -webkit-transform: skewX(-15deg) skewY(0deg);
    -webkit-box-shadow: 0px 0px 10px #ccc;
    -webkit-border-radius: .5em;
    
}

section {
    width: 180px;
    height: 380px;
    position: relative;
    border: 0px solid #ccc;
    z-index: 10;
    background-color: white;
    top: 10px;
    left: 10px;
     -webkit-box-shadow: 0px 0px 10px #ccc;
       -webkit-border-radius: .5em;
    -webkit-transition: all .50s ease-in-out;
}

section:hover {
    -webkit-box-shadow: 15px 5px 20px #ccc;
    -webkit-transform: skewX(15deg) skewY(0deg);
    width: 420px;
}