Creating Material Design Input Fields With jQuery AddInput - Download Creating Material Design Input Fields With jQuery - AddInput

Download Creating Material Design Input Fields With jQuery – AddInput

Posted on

This time I will share jQuery Plugin and tutorial about Creating Material Design Input Fields With jQuery – AddInput, hope it will help you in programming stack.

Creating Material Design Input Fields With jQuery AddInput - Download Creating Material Design Input Fields With jQuery - AddInput
File Size: 19.5 KB
Views Total: 2483
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

AddInput is a dead simple jQuery plugin which enhance the default input fields with Material Design styles and floating inline label animations ( auto moves to float above the field when the user engages with the input field).

How to use it:

1. Add jQuery library (slim build is recommended) and the jQuery AddInput plugin’s JS & CSS files to the html page.

1 <link href="dist/addInput.css" rel="stylesheet">
2 <script src="//code.jquery.com/jquery-3.1.1.slim.min.js"></script>
3 <script src="dist/addInput.js"></script>

2. To initialize the plugin automatically, just add the data-addui='input' to the native input fields and we’re done.

1 <input data-addui='input' id='myInput' name='myInput' value='' type='text' placeholder='Name' />

3. Override the default CSS styles in the SCSS.

01 /* Colors */
02 $primary: #3f51b5;
03 $accent: #ff4081;
04 $error: #f44336;
05 $warning: #ff9800;
06 $success: #4caf50;
07  
08 /* Sizes */
09 $mobileSize: 600px;
10 $tabletSize: 960px;

This awesome jQuery plugin is developed by dustinpoissant. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net