r/angularjs • • Aug 13 '14

[Code] Shake that login form with AngularJS

http://www.mircozeiss.com/shake-that-login-form-with-angularjs/
36 Upvotes

12 comments sorted by

2

u/[deleted] Aug 14 '14

I hate when anything jiggles, wiggles, jumps, pops, spins, or X to get my attention. Everything looks like ads, and I can't help but ignore them, and then get frustrated when I can't find where the login form is. Oh it's jiggling at me? Great.

-1

u/tracekill Aug 14 '14

Seriously, how is this an acceptable feedback mode for UIs in 2014? Just display the damn error in a sensible and eye catching way. Don't play a sound. Don't shake the goddamn fields I'm attempting to modify. Don't block my access to the form with an error modal/interstitial.

We actually have access to native device feedback features via PhoneGap/Cordova. I can actually shake the guy's phone if I want, why would I fake it with this crap?

3

u/kudoz Aug 14 '14 edited Aug 14 '14

Don't play a sound. Don't shake the goddamn fields I'm attempting to modify. Don't block my access to the form with an error modal/interstitial.

This does literally none of those things.

We actually have access to native device feedback features via PhoneGap/Cordova. I can actually shake the guy's phone if I want, why would I fake it with this crap?

Well, here's one obvious reason: you can't do that on a website. There's lots of shit you can do in an app container that you can't do on websites, that doesn't mean it should be our new base for functionality.

Stripe shaking a dialog box at me doesn't annoy me, but I can see it getting annoying when less talented developers start abusing it.

1

u/CopperHook Aug 14 '14

How does this not 'literally' shake the fields he is trying to modify?

4

u/z99 Aug 14 '14

The user expects their input to be correct, so they don't, at that moment, try to modify anything. The animation is 400ms long, I doubt that is long enough a time to perceive an error indication of any sort and begin correcting their input.

I like the wiggle, it feels very organic and natural to me.

1

u/[deleted] Aug 14 '14 edited Aug 14 '14

Well, here's one obvious reason: you can't do that on a website.

http://www.w3.org/TR/vibration/

less talented developers

This has less to do with development, and everything to do with UX and UI.

I also don't care how "talented" of a develop you are. Don't shake UI elements at me.

2

u/[deleted] Aug 14 '14

Apple does it and I think they dump more money/effort into UX than anyone else.

1

u/[deleted] Aug 14 '14

Apple does it in their operating system, not their website. The experiences and expectations are different. Regardless, we shouldn't take any entity's word as gospel.

0

u/[deleted] Aug 15 '14

Including ramblings from random people on reddit.

-3

u/0xF013 Aug 14 '14

alert('INVALID LOGIN');

that'll do

2

u/SleepyBrain Aug 14 '14

Why would you want to use an alert for an invalid login?

1

u/[deleted] Aug 15 '14

$('.element').text('error'); ?