JSFiddle - React, Tailwind, and code Playground

by Ngoc Hieu

HTML

<div id="effect3" class="image">
        <img src="http://2.bp.blogspot.com/-Xd6oBiZlM7c/UtFlOztP-8I/AAAAAAAAADg/bdtrYKkNZTs/s1600/effect-3.jpg" />
        <div class="mask"></div>
        <div class="detail">
            <h1 class="title">Hiệu ứng 3</h1>
            <p>Chúng ta vẫn biết rằng, làm việc với một đoạn văn bản dễ đọc và rõ nghĩa dễ gây rối trí</p>
            <a href="#">Xem tiếp</a>
        </div>
    </div>

CSS

.image{
        width: 360px;
        float: left;
        margin: 10px;
        position: relative;
        overflow: hidden;
        height: 240px;
    }
    .image img{
        width: 100%;
    }
    h1.title{
        text-transform: uppercase;
        font-size: 25px;
        font-weight: bold;
        line-height: 25px;
        padding: 10px;
        position: relative;
    }   
    .detail{
        position: absolute;
        width: 100%;
        height: 100%;
        top:0;
        left: 0;
        text-align: center;
    }
    p{
        color: #fff;
        padding: 10px;
    }
    a{
        text-decoration: none;
        display: inline-block;
        padding: 10px 15px;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border: 1px solid #111;
    }
    .mask{
        position: absolute;
        width: 100%;
        height: 100%;
        top:0;
        left: 0;
        bottom: 0;
        right: 0;
    }

#effect3 .mask{
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        -webkit-transition:  all 0.2s ease-in-out 0s;
        -moz-transition:  all 0.2s ease-in-out 0s;
        transition: all  0.2s ease-in-out 0s;
        transform: rotate(180deg) translate(-100%, -100%);
        -webkit-transform: rotate(180deg) translate(-100%, -100%);
        -moz-transform: rotate(180deg) translate(-100%, -100%);
    }
    #effect3 .title{
        background: rgba(0,0,0,0.9);
        color:#fff;
        -webkit-transition:  all 0.4s ease-in-out 0.2s;
        -moz-transition:  all 0.4s ease-in-out 0.2s;
        transition: all  0.4s ease-in-out 0.2s;
        transform: translateY(-100px);
        -webkit-transform: translateY(-100px);
        -moz-transform: translateY(-100px);
    }
    #effect3 a{
        background: rgba(0,0,0,1);
        color:#fff;
        border-radius: 0;
        -webkit-border-radius: 0;
        -webkit-transition:  all 0.1s ease-in-out 0.2s;
       ...