body{
    background: #eaf8e9;
}
.container{
    max-width: 500px;
    margin: 0 auto;
}
.square{
    width: 200px;
    height: 200px;
    background: #6a68d7;
    border-radius: 20px;
    margin: 50% auto;
    position: relative;
}
.rect{
    width:0px;
    height: 30px;
    position: absolute;
    transform: translateY(-70px);
    left:-200px;
    transition: width 3s ease;
}
.square:hover .rect{
    width: 600px;
    background: #a598fb;
}
.title{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    opacity:0;
    transition: 0.3s 3s;
}
.square:hover .title{
    opacity:1;
}
h2{
    color: #fff;
    font-size: 20px;
}

