title: Add animation in element
body: <p>I'm working on a simple app, that transfers an element inside an element.
  So I have 2 set of shapes, square and circle. First I have to choose a circle and then a square, the moment I click on a square, the circle that I chose will be move inside the square. the code is working fine, its just, I have to add animation like the circle is moving inside the square I choose.</p>
  
  <p>Hope you understand me.</p>
  
  <p>Thanks</p>
  
  <p><a href="https://codepen.io/gerryl1991/pen/NBNLyW" rel="nofollow noreferrer"><strong>CODEPEN</strong></a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.circle').click(function() {
    $(this).addClass('selected').siblings().removeClass('selected');
    var selected = $(this);
  
    $('.container .square').click(function() {
      $(this).addClass('selected');
      $(this).html(selected);
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    height: 230px;
    width: 110px;
    background-color: #eee;
    padding: 10px;
    position: relative;
    border: 1px solid #DDD;
  }
  
  .round {
    position: absolute;
    bottom: 10px;
  }
  
  .square {
    cursor: pointer;
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 1px solid #f60;
    position: relative;
  }
  
  .square .circle {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
  }
  
  .circle {
    cursor: pointer;
    display: inline-block;
    width: 45px;
    height: 45px;
    border: 1px solid green;
    border-radius: 100px;
    text-align: center;
    position: relative;
  }
  
  .circle span {
    width: 10px;
    height: 20px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
  }
  
  .circle.selected {
    background-color: #FFFF;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="container"&gt;
    &lt;div class="box"&gt;
      &lt;div class="square"&gt;&lt;/div&gt;
      &lt;div class="square"&gt;&lt;/div&gt;
      &lt;div class="square"&gt;&lt;/div&gt;
      &lt;div class="square"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="round"&gt;
      &lt;div class="circle"&gt;
        &lt;span&gt;1&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="circle"&gt;
        &lt;span&gt;2&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="circle"&gt;
        &lt;span&gt;3&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="circle"&gt;
        &lt;span&gt;4&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>