body
{
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg,yellow,greenyellow,yellow,greenyellow,green);
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
}

 @-webkit-keyframes Gradient
{
    0%
    {
        background-position: 0% 50%;
    }
    50%
    {
        background-position: 100% 50%;
    }
    100%
    {
        background-position: 0% 50%;
    }
}

.container
{
    width: 1280px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.container .box
{
    position: relative;
    width: 300px;
    height: 300px;
    background: #fff;
    margin: 10px;
    box-sizing: border-box;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0,0,0,.8);
} 



.container .box .imgBox 
{
    position: relative;
    overflow: hidden;
}

.container .box .imgBox img
{
   width: 300px;
   height: 300px;
   object-fit: cover;
   transition: transform 2s;
   
    
}

.container .box:hover .imgBox img
{
    transform: scale(1.2);
}

.container .box .details
{
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,.8);
    transform: scaleY(0);
    transition: transform .5s;
}
.container .box:hover .details
{
    transform: scaleY(1); 
}
.container .box .details .content 
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 15px;
    color: #fff;
}

.container .box .details h2 
{
   margin: 0;
   padding: 0;
   font-size: 20px;
   color: #ff0;
   
}

.container .box .details p
{
    margin: 10px 0 0;
    padding: 0;
}