AutoSize Input
Example
HTML
Copy and paste into HTML
<!--Auto Size input textarea-->
<textarea class="form-control" rows="1" placeholder="Enter big paragraph here to check this out"></textarea>
Javascript
Copy and paste just before end of body tag
<!--Autosize textarea-->
<script src="assets/vendor/node_modules/js/autosize.min.js"></script>
<script>
var ta = document.querySelector('textarea');
ta.style.display = 'none';
autosize(ta);
// Change layout
ta.style.display = 'block';
autosize.update(ta);
</script>