title: Opacity Style doesn't work in a call back Java Script?
body: <p>The loop is working ok after callback of assigned eventlistener function fade() but console show me that opacity doesn't modify when the value is changing. What i'm doing wrong?</p>
  
  <pre><code>function fade(element) {
  
      var easeIn = 0.01;
      var easeOut = 0.01;
  
      for (alpha = 1; alpha &gt;= 0.2 ; alpha -= easeIn){
          element.target.style.opacity = String(alpha);
          console.log(alpha, element.target);
      }
  
      for (alpha = 0.2; alpha &lt;= 1 ; alpha += easeOut){
          element.target.style.opacity = alpha;
          console.log(alpha, element.target);
      }    
  }
  </code></pre>