JSFiddle - React, Tailwind, and code Playground

HTML

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>Untitled</title>
<head>
<meta charset="utf-8">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
  $('#search').keypress(function() {

      $(this).animate({
      top: '0',
    });

      $('#icon').fadeOut('slow', function() {

      }); 

  });
});

</script>
<style type="text/css" media="screen">

body, ul {
    margin: 0px;
    padding: 0px;
}
body {
    background: #e1e1e1;
}

#container {
    position: relative;
    border: #000 1px solid;
    margin: 0px auto;
    width: 960px;
    height: 800px;
}

input {
    outline: none;
}

#icon {
    position: absolute;
    top: 80px;
    left: 370px;
    width: 200px;
}

#search {
    position: absolute;
    top: 300px;
    left: 230px;
    border-top: #b1b1b1 1px solid;
    border-right: #ddd 1px solid;
    border-bottom: #ddd 1px solid;
    border-left: #ddd 1px solid;
    padding: 2px 4px 2px 4px;
    width: 500px;
    font-size: 18px;
    font-family: sans-serif;                
}

    #search:hover {
        border-top: #a1a1a1 1px solid;
        border-right: #ccc 1px solid;
        border-bottom: #ccc 1px solid;
        border-left: #ccc 1px solid;
    }

    #search:focus {
        border-top: #9a9a9a 1px solid;
        border-right: #c5c5c5 1px solid;
        border-bottom: #c5c5c5 1px solid;
        border-left: #c5c5c5 1px solid;
    }


</style>
</head>
<body>  
<div id="container">
    <img id="icon" src="http://static.adzerk.net/Advertisers/db5df4870e4e4b6cbf42727fd434701a.jpg" alt="icon">           
    <input id="search" type="text" autofocus="autofocus">
</div>
</body>
</html>