Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <textarea id="myTextarea"></textarea>
  <div id="showedText">Texto a ser mostrado</div>
</body>
</html>
 
#showedText {
  opacity: 0;
  transition: opacity 0.5s 1s;
}
#showedText.editing {
  opacity: 1; transition-delay: 0s;
}
 
var myTextarea = document.getElementById('myTextarea');
var showedText = document.getElementById('showedText');
myTextarea.addEventListener('keydown', function () {
  showedText.className += ' editing ';
  setTimeout(function () {
    showedText.className = showedText.className
      .replace(/(^|\b)editing(\b|$)/g, '');
  }, 500);
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers