JSFiddle - React, Tailwind, and code Playground

by adeneo

HTML

<textarea id="txt"></textarea>

CSS

#txt {height: 100px; width: 400px; color: black}

JavaScript

$("#txt").keydown(function(e){
    if(e.which === 13){
        $(this).animate({color: 'transparent'},1000);
   }
});