float-labels
v1.0.0
Published
Floating labels directive in angular js
Downloads
1
Maintainers
Readme
float-label
Angular Directive for floating the labels of input fields. Enhance the representation of form and UX.
I got inspired by the http://thecodeplayer.com/walkthrough/animating-float-labels-jquery-css3 and started to implement this as angular directive as well
Check out the demo on plnkr
Float lables are cool and can be awesomely animated by breaking down the labels into individual characters and then playing around with it.
#Usage Basic usage for required fields
<div class="form-group">
<input float-label="Email Address"
type = "text"
name = "Inputemail"
class = "form-control"
ng-model = "loginForm.email" >
</div>
Note: Make sure to use CSS "position:relative" for the parent element like 'div' of the input field otherwise absolute labels CSS position wouldnt work accordingly. If you don't understand than see the plnkr added above.