CodePen

HTML

            
              <div class="a"><span>This is div a</span></div>
<div class="b"><span>This is div b</span></div>
<div class="c"><span>This is div c</span></div>
            
          
!

CSS

            
              div {
    positon:relative;
    overflow: hidden;
}
span {
    position:absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100px;
}
.a{
    width:100px;
    height:100px;
    background:#852369;
    position:relative;
    float:left;
    -webkit-transition: width 1s ease; 
    -moz-transition: width 1s ease; 
    -o-transition: width 1s ease;   
    -ms-transition: width 1s ease;   
    transition: width 1s ease;
    
}

.a:hover {
 width:200px;   
}

.b{
    width:100px;
    height:100px;
    background:#542365;
    position:relative;
    float:left;
        -webkit-transition: width 1s ease; 
    -moz-transition: width 1s ease; 
    -o-transition: width 1s ease;   
    -ms-transition: width 1s ease;   
    transition: width 1s ease;
    }

.b:hover {
 width:200px;   
}


.c{
    width:100px;
    height:100px;
    background:#523641;
    position:relative;
    float:left;
        -webkit-transition: width 1s ease; 
    -moz-transition: width 1s ease; 
    -o-transition: width 1s ease;   
    -ms-transition: width 1s ease;   
    transition: width 1s ease;
    }

.c:hover {
 width:200px;   
}


            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $(function() {
    $('.a').hover(function() {
        $('.b,.c').css('width', '50');
    }, function() {
        $('.b,.c').css('width', '');
    }

    );
    $('.b').hover(function() {
        $('.a,.c').css('width', '50');
    }, function() {
        $('.a,.c').css('width', '');
    }

    );
    $('.c').hover(function() {
        $('.a,.b').css('width', '50');
    }, function() {
        $('.a,.b').css('width', '');
    }

    );
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................