Been a bit lazy lately, but trying to get back in the groove of writing this thing. Had a lot of failures lately, so let’s talk about one of those!
I was working to redesign our login screen. It works fine, but is very basic. Time to add some jQuery flash!
The idea was to absoultely position the form labels (username and password) over the input fields (which were styled to appear just as underlines). When a user clicks on a field (or focuses there via tab), the label animates to the right of the input field and shrinks down. If the input blurs, there are two options: 1) if the user entered something, the label stays small and out of the way. 2) if the user didn’t enter anything, the label grows and moves back into place.
And it worked great! Took some tweaking to work properly, but I thought it was a cool little trick. But in my testing, I finally used a browser that had stored credentials for the login screen and everything fell apart.
Different browsers have different events when they autofill fields, and it seems none really broadcast those events to hook into. As a result, if a user stored their credentials, they were greeted with text on text (their credentials, overlaid with the input labels). The focus events didn’t fire.
So I scrapped all that and just went with a simple setup of labels over basic input fields with some useful placeholder text. It’s really fun to create cool looking interfaces, and when it finally works, I always get a rush from the accomplishment. But it’s important to remember that users don’t care about your rush. They just want to log in to the damn site, so make it as easy as possible!
If you’re curious about what might have been, I cooked up a quick codepen to show a general idea. Check it out at http://codepen.io/joedriscoll79/pen/NNoGrv
Feel free to tell me how ugly it is- I though it was kind of cool. Have an idea for how it might work better (or at all with autofill)? Let’s discuss!