JSFiddle - React, Tailwind, and code Playground

by Ngoc Hieu

HTML

<div id="effect6" class="image">
        <img src="http://3.bp.blogspot.com/-e6khoy3ii_I/UtFlQY7sklI/AAAAAAAAAEA/tVq9SOoLSG0/s1600/effect-6.jpg" />
        <div class="detail">
            <h1 class="title">Hiệu ứng 6</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;
    }

#effect6 .detail{
        background: rgba(146,96,91,0.5);
        opacity: 0;
        transition: all 0.3s ease-in 0.2s;
        -webkit-transition: all 0.3s ease-in 0.2s;
        -moz-transition: all 0.3s ease-in 0.2s;
    }
    #effect6 .title{
        color:#fff;
        margin: 0 10px;
        padding: 20px;
        border-bottom: 1px solid #444;
        opacity: 0;
        transition:all 0.5s ease-in-out 0.3s;
        -webkit-transition:all 0.5s ease-in-out 0.3s;
        -moz-transition:all 0.5s ease-in-out 0.3s;
        transform: scale(10);
        -moz-transform: scale(10);
        -webkit-transform: scale(10);
        position: relative;
    }
    #effect6 p{
        opacity: 0;
        transition:all 0.5s ease-in-out 0.3s;
        -webkit-transition:all 0.5s ease-in-out 0.3s;
        -moz-transition:all 0.5s ease-in-out 0.3s;
        transform: scale(10);
        -moz-transform: scale(10);
        -webkit-transform: scale(10);
        position: relative;
    }
    #effect6 a{
       ...