JQuery Super Labels Plugin
github.com
JQuery Super Labels Plugin
1–10 of 18 posts
Re: JQuery Super Labels Plugin
#2Re: JQuery Super Labels Plugin
#3Re: JQuery Super Labels Plugin
#4Re: JQuery Super Labels Plugin
#5I generally use normal boring labels, then modernizer to detect if the browser supports placeholders, if so hide the labels and add placeholders to the attributes
Re: JQuery Super Labels Plugin
#6Re: JQuery Super Labels Plugin
#7FWIW, Safari and Chrome both keep placeholder text there like this plug-in does (without the animation). It'd be nice to get FireFox on board.
&::-webkit-input-placeholder {
-webkit-transition: text-indent 200ms ease-in-out;
visibility: visible !important;
}
&:focus::-webkit-input-placeholder {
text-indent: 115px; /* Change to width of input */
}
If only you could do the same for Firefox...Re: JQuery Super Labels Plugin
#8FWIW, Safari and Chrome both keep placeholder text there like this plug-in does (without the animation). It'd be nice to get FireFox on board.
Yes, in -webkit- browsers you can achieve the same effect with this CSS: &::-webkit-input-placeholder { -webkit-transition: text-indent 200ms ease-in-out; visibility: visible !important; } &:focus::-webkit-input-placeholder { text-indent: 115px; /* Change to width of input */ } If only you could do the same for Firefox...
Re: JQuery Super Labels Plugin
#9It's cute but too much distracting IMO. I prefer to have it fade a little bit on focus and disappear on writing.
$('form').superLabels({ slide:false });
Re: JQuery Super Labels Plugin
#10Seems OTT to me, I generally use normal boring labels, then modernizer to detect if the browser supports placeholders, if so hide the labels and add placeholders to the attributes
This plugin doesn't replace (true) placeholder functionality, so I suppose it's the same as what you're doing except more semantic.