wangaz / contao-form-auto-grow
Automatically resizes textareas depending on their content
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 1
Type:contao-module
Requires
- php: >=5.3
- contao-community-alliance/composer-installer: *
- contao/core: ~3.0
Replaces
- contao-legacy/autogrowingtextarea: *
README
Automatically resizes textareas depending on their content for Contao CMS.
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
CSS Tips
Use the following CSS-Styles to get most out of Auto Grow.
Hide the vertical scrollbar that sometimes appears in Webkit while resizing:
textarea { overflow-y: hidden; }
Hide the resize handle in Webkit:
textarea { resize: none; }
Animate the height via CSS-Transforms:
textarea { -moz-transition-duration: 250ms; -webkit-transition-duration: 250ms; -o-transition-duration: 250ms; transition-duration: 250ms; -webkit-transition-property: height; -moz-transition-property: height; -o-transition-property: height; transition-property: height; }