<div id="btn" class="undone">
  <img src="https://i.imgur.com/UoyMb1M.png" align="center" id="check" align="center"/>
  <span id="dsc">Recommend</span>
</div>
#btn {
	 width: 200px;
	 height: 60px;
  margin-top: 150px;  
	 -webkit-border-radius: 5px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  background-color: #ededed;
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
  transition:.5s;
  position: relative;
 	background-color: #29ab50;
  cursor:pointer;
}

#check { 
  margin-bottom: 3px;
  position: absolute;
  opacity: 0;
}

#dsc { 
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  line-height: 60px;
  text-align: center;
  margin-left: 52px;
}
$('#btn').click(function() {
  if($('#btn').hasClass('done')){
    $('#btn').removeClass('done');
    $('span#dsc')
    .animate({'marginLeft':'52px'},'1500')
    .text('Recommend');
    $('img#check')
    .animate({'opacity':'0'},'1500');
    $('#btn').removeClass('undone');
  }else{
    $('#btn').removeClass('undone');
    $('span#dsc')
    .animate({'marginLeft':'75px'},'1500')
    .text('Recommended');
    $('img#check')
    .animate({'opacity':'1'},'1500');
    $('#btn').addClass('done');
  }
});
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js