title: Create a +1 Animation when button is clicked
body: <p>I was making a game where you get money for clicking on a button. Here's a part of it:</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>var money = 0;
  var currentMoney = document.getElementById("currentMoney");
  
  function addOne() {
    money++;
    currentMoney.innerHTML = money;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button onclick="addOne();"&gt;+1$&lt;/button&gt;
  &lt;p&gt;Money: &lt;b id="currentMoney"&gt;0&lt;/b&gt;$&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Later i was looking in the Internet and i found a website called Cookie Clicker and i saw this animation that when you click the cookie,  a +1 is going up and fades away (It is not so important that the number goes up where the mouse is for my example):</p>
  <img src="https://media2.giphy.com/media/s0hxAOOXN1PbVokNqB/giphy.gif">
  <p>I tried making this animation but i don't know how i can make it go up:</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>var money = 0;
  var currentMoney = document.getElementById("currentMoney");
  
  function addOne() {
    money++;
    currentMoney.innerHTML = money;
    
    var moneyAnimation = document.createElement("p");
    moneyAnimation.innerHTML = "+1";
    document.getElementById("moneyAnimation").appendChild(moneyAnimation);
    
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    margin: 0;
    padding: 0;
  }
  
  #moneyAnimation {
    height: 500px;
    border: 1px solid;
    width: 200px;
    float: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button onclick="addOne();"&gt;+1$&lt;/button&gt;
  &lt;p&gt;Money: &lt;b id="currentMoney"&gt;0&lt;/b&gt;$&lt;/p&gt;
  
  &lt;div id="moneyAnimation"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Thanks in advance, have a nice day! :)</p>