News for hackers. Stuff that matters.
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @02:09PM (#31782062)
I'm a sucker for good little microinteractions. The author's checkbox may not be one of those, as it seems a bit overdone, but I'd have to try it to be sure. It's easy to go too far.

But, some other examples that I love:

• https://www.joshwcomeau.com/animation/3d-button The red "push me" button is great, but also check out the sun/moon icon near the top right!

• https://www.jam3.com/#contact The hover states on the buttons.

• https://citymapper.com The top-left hamburger icon.

(I also happen to be quite proud of the hover states on my own site: https://jonathanalland.com/)

Making this type of stuff is definitely what I miss most about working in web design.

Re:The most satisfying checkbox by CTmystery on Friday June 17, 2022 @02:35PM (#31782451)
To each their own. I find the hover states on the jam3 site unintuitive, like the clickable area is moving out from under me, forcing me to track it before perfoming the actual click. Reminds me of a flash ad where the target moves as your mouse gets closer.
Re:The most satisfying checkbox by bavila on Friday June 17, 2022 @05:17PM (#31784489)
The way the button text moves on hover is also distracting and annoying.
Re:The most satisfying checkbox by srik on Saturday June 18, 2022 @03:03AM (#31787793)
Yep that hover animation alters user perception of it's fundamental state, from a button to link. Not saying experimentation is bad, but in general that kind of incongruence is a big no-no for production UX.
Re:The most satisfying checkbox by secondcoming on Friday June 17, 2022 @05:45PM (#31784786)
And they won’t let you into their page unless your device is in portrait mode
Re:The most satisfying checkbox by rr888 on Friday June 17, 2022 @05:04PM (#31784359)
hover sucks for touchscreens
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @07:24PM (#31785771)
It's an optional little rollover animation. So what if it doesn't play on a touch screen?
Re:The most satisfying checkbox by bombcar on Friday June 17, 2022 @02:15PM (#31782143)
The hamburglar icon is a perfect example - the whimsey happens after the action is performed (arguably the menu should appear immediately instead of pop out, but it's pretty quick) instead of delaying the action until the animation completes.
Re:The most satisfying checkbox by layer8 on Friday June 17, 2022 @03:01PM (#31782786)
The animation is highly distracting. It draws the attention to the button instead of to the menu the user now wants to use. The animation creates a “wow” effect on first use, but that’s exactly the kind of visual affordance you don’t want on a UI element for routine use.
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @03:06PM (#31782858)
IMO, it works because the button moves much less than the menu itself, which is a large block of color that slides out. My eye is drawn to the larger visual change.
Re:The most satisfying checkbox by arcastroe on Monday June 20, 2022 @07:14PM (#31817460)
I think it's perfect. It's hard to miss the giant white sidebar that pops up. Actually, I think it's safe to say nobody is going to miss it. Keeping immediate attention on the hamburger icon that now switched to an 'x' gives users information on how to close the sidebar if they wish (as opposed to swiping it left or something). If the "distracting" animation we're omitted, the site could have a different problem that users didn't see the 'x' and now don't know how to close the sidebar. I think this site found a perfect balance on usability.
Re:The most satisfying checkbox by jolmg on Friday June 17, 2022 @02:35PM (#31782443)
> arguably the menu should appear immediately

I like that the rotation makes it seem like a rack and pinion mechanism, moving the menu in and out.

https://en.wikipedia.org/wiki/Rack_and_pinion

The double bounce at the end seems like a needless delay, though. Access to the menu would be quicker without it.

Re:The most satisfying checkbox by chrismorgan on Friday June 17, 2022 @02:55PM (#31782695)
It’s pretty slow. The movement in isn’t too slow (though it’d be better faster), but I find the little bounce at the end to be slow and disconcerting (that’s not the way a physical spring would go). I’d be inclined to almost double the speed, halve the bounce and speed it up even more.

More interesting is something exposed in the dev tools. I managed to die.

Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @03:12PM (#31782931)
Yeah, I think that bounce at the end could use a bit of tightening up. I would have made it quicker but with less horizontal movement, so it feels more elastic.
Re:The most satisfying checkbox by gitgud on Friday June 17, 2022 @10:03PM (#31786713)
There's many different animations for the hamburger menu, [1] this site lists a lot of interesting variations, all after the click too.

[1] https://jonsuh.com/hamburgers/

Re:The most satisfying checkbox by arcastroe on Monday June 20, 2022 @07:17PM (#31817489)
Thank you for this, bookmarked. However, I like the original example because the spinning animation on the hamburger menu almost looks like it's directly causing the side nav to appear, as if it were a hand crank. The spinning matches up perfectly.
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @10:22PM (#31786785)
I believe GP is talking about the one I linked specifically: https://citymapper.com/
Re:The most satisfying checkbox by deergomoo on Friday June 17, 2022 @05:00PM (#31784316)
The red button shows how important depth is for UI controls. There would never be any doubt that it’s an interactive element.

I wish the flat design trend we’re only now starting to drag ourselves out of only extended to materials. I’ve no problem with getting rid of the OS X Aqua/Windows Aero-style gloss that was everywhere and starting to look dated, but we lost a ton of usability by making interactive elements indistinguishable from labels.

Re:The most satisfying checkbox by robocat on Friday June 17, 2022 @10:04PM (#31786720)
The red button is also lacking some really subtle queues if the press is cancelled. On mobile, touch the button and drag-scroll, and the button should not remain down. On desktop, ctrl-click and the button should not press, or click down on your mouse and press [ESC], and the button should cancel (I think - I am not on my desktop).

Most controls have a bunch of really subtle and unobvious platform dependant behaviour. Often control replacements/skins lose subtle behaviours.

In my opinion the timing of a very quick tap on the button feels off on my iPad - although I’m unsure if that could be improved with CSS or JavaScript.

Re:The most satisfying checkbox by lwansbrough on Friday June 17, 2022 @10:54PM (#31786917)
Riot Games' old website had a super satisfying hover effect for their menu button (top left -- you'll have to close the Wayback machine bar with the close icon top right) https://web.archive.org/web/20210301032806/https://riotgames...
Re:The most satisfying checkbox by CreepGin on Saturday June 18, 2022 @03:04AM (#31787794)
Very nice example of texture animation driven by css transitions. I'm a game dev. After Unity began to support css transitions, I found myself doing more and more flipbook stuff to really give existing UI elements that extra punch. A recent example: https://vimeo.com/718225603
Re:The most satisfying checkbox by Wowfunhappy on Saturday June 18, 2022 @09:26AM (#31789623)
This one is great! I just wish there were a handful more animation frames, it's a tad choppy.

Heads up, you can add `if_` after the date in a web archive link to show it without the header. I.e. https://web.archive.org/web/20210301032806if_/https://riotga...

Re:The most satisfying checkbox by HWR_14 on Saturday June 18, 2022 @11:08AM (#31790492)
Neat tip, thanks!
Re:The most satisfying checkbox by exclipy on Sunday June 19, 2022 @06:45AM (#31798121)
Why does the hover effect not happen if I hover the ▼ part of the button though? It makes it seem like icon and the ▼ do different things.
Re:The most satisfying checkbox by nomilk on Friday June 17, 2022 @02:36PM (#31782457)
Paul Graham's essay on design says good design is slightly humorous. I find the red button slightly funny, yet have no idea why.
Re:The most satisfying checkbox by latchkey on Friday June 17, 2022 @02:55PM (#31782697)
Re:The most satisfying checkbox by nomilk on Friday June 17, 2022 @03:09PM (#31782892)
See also: Taste for Makers: http://www.paulgraham.com/taste.html (under section 'Good design is often slightly funny')
Re:The most satisfying checkbox by talos2110 on Friday June 17, 2022 @03:00PM (#31782760)
It’s because the animation timing and easing, methinks.

Look here for basics https://youtu.be/c7HXLl8YREM

Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @02:54PM (#31782683)
The citymapper hamburger icon definitely has a humorous element too!

I'm not sure I agree with the quote though. It so happens that the websites I linked all had an element of playfulness, but I don't think that's required.

Here's a site I worked on. Check out the hover animation for the four tiles underneath "Our Innovative and Customer-Driven Businesses": https://web.archive.org/web/20190610202159if_/http://2018ar....

IMO, there's nothing playful or "humorous" about this animation. I would describe it instead as "elegant"—it gives the site an extra level of sophistication.

Another (very small) example might be the "Apply Now" button on https://www.airforce.com/

Re:The most satisfying checkbox by markdown on Friday June 17, 2022 @10:51PM (#31786905)
Graham is hardly an authority on design.
Re:The most satisfying checkbox by layer8 on Friday June 17, 2022 @02:57PM (#31782715)
> https://www.joshwcomeau.com/animation/3d-button

The springy release animation on that one would drive me crazy.

Re:The most satisfying checkbox by qbit42 on Friday June 17, 2022 @02:19PM (#31782209)
The sun/moon button is unreasonably satisfying!
Re:The most satisfying checkbox by asadlionpk on Friday June 17, 2022 @02:26PM (#31782325)
Is it due to the sound it makes?
Re:The most satisfying checkbox by frosted-flakes on Friday June 17, 2022 @06:27PM (#31785233)
The sound is unreasonably irritating. Basic actions like clicking should not play sounds out of my speakers.
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @02:35PM (#31782442)
The sound is a huge piece, but it wouldn't be as good without the visuals, they go together!
Re:The most satisfying checkbox by autoexec on Friday June 17, 2022 @02:59PM (#31782738)
It's really great that unlike Jam3, your site and the first example still work perfectly fine without javascript enabled! It's amazing how many people will spend a lot of time on little details and animations while neglecting to make sure the site degrades gracefully and is still useful without a bunch of remotely hosted JS.
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @04:28PM (#31783850)
I actually spent a significant amount of time making my site work without Javascript. My noscript.css is only ten lines, but it adds an extra pathway into the code. I've broken several times while making other changes, and it took a while to fix. It's easy to make motherfuckingwebsite.com work without Javascript, but start adding fanciness and it becomes difficult quickly.

I do it anyway because it's my personal site, and so I set out with certain rules for myself. In addition to working without Javascript in modern browsers, my site also supports IE 11 and Safari 6 (when Javascript is enabled). There is no build system, and all the code is handwritten (with a handful of very tiny third-party libraries like Waypoints).

Philosophically, I believe this is the right way to make a website. Realistically, I would never do any of it on a professional project. No one ever actually sees it.

(I'd like to make a distinction between support for unusually-configured software and support for weak hardware. I think it's broadly unethical to ignore performance because you're lucky enough to afford a fast computer. Manufacturing chips is bad for the planet, and the new ones might as well be no faster than the old ones if the code is going to be slower.)

Re:The most satisfying checkbox by SLWW on Saturday June 18, 2022 @04:07AM (#31788075)
I pushed that red button way too many times; bookmarking it so I can just not read and click a button that does nothing.
Re:The most satisfying checkbox by lostlogin on Friday June 17, 2022 @05:20PM (#31784513)
> https://citymapper.com/

That is a neat button.

Some combination of taps on the green one next to it (might be a double tap on the green) and taps on the hamburger break the hamburger in iOS. I guess that the price for having a fun button.

Re:The most satisfying checkbox by easrng on Friday June 17, 2022 @06:04PM (#31784996)
Try https://shapeshifter.design/, it's good for making icons morph like dark/light and hamburger/close.
Re:The most satisfying checkbox by Doxin on Thursday June 23, 2022 @05:19AM (#31846695)
You might be interested in checking out the playdate[0]. It's a handheld game console that's absolutely chock full of these sorts of things and it's absolutely delightful.

For example to unlock it you need to press the unlock button twice. If you press it once one eye opens, if you press it twice both eyes open and the thing unlocks. If you press once and wait a bit a thought bubble pops up telling you you need to press it twice.

Re:The most satisfying checkbox by bbx on Friday June 17, 2022 @03:28PM (#31783117)
You might enjoy my sun/moon icon then :-) https://jgthms.com/
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @03:45PM (#31783313)
I don’t know why, but I wish this rotated clockwise for both sun → moon and moon → sun. The fact that it’s a wheel, but switches direction, is deeply unsatisfying to me for some reason.
Re:The most satisfying checkbox by bbx on Friday June 17, 2022 @04:23PM (#31783785)
I never thought about that. Let me fix it.
Re:The most satisfying checkbox by allenu on Friday June 17, 2022 @04:02PM (#31783520)
I agree. It might be because having it go clockwise would make the sun appear to be setting? I do agree with the other point about having the wheel just go in one direction as well.
Re:The most satisfying checkbox by elil17 on Friday June 17, 2022 @04:15PM (#31783681)
Yes, I agree. That would give it the sense of time as opposed to having it just feel like a toggle.
Re:The most satisfying checkbox by al_borland on Friday June 17, 2022 @09:08PM (#31786427)
The drop shadow treating the mouse cursor as the light source on the Work page is really cool.
Re:The most satisfying checkbox by malshe on Friday June 17, 2022 @09:41PM (#31786606)
Fantastic!
Re:The most satisfying checkbox by hetspookjee on Friday June 17, 2022 @02:16PM (#31782160)
What a great list. Please share more if you have any! Just started since recently with tailwind and there’s an entire world opening up.
Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @02:30PM (#31782385)
One more I initially resisted sharing because I worked on it: https://2019-annual-report.fnih.org/ The hover states on "Understanding", "Breakthroughs", "Solutions".

There's no framework involved by the way, it's just some CSS transforms. :)

Re:The most satisfying checkbox by alpaca128 on Friday June 17, 2022 @02:49PM (#31782623)
Wow, the hover states in the second link are incredible. They feel "just right".

> I also happen to be quite proud of the hover states on my own site

Those are nice as well, though I'm not sure why the button animation is so delayed. It felt like I missed the button with the cursor until it suddenly started wiggling.

Re:The most satisfying checkbox by Wowfunhappy on Friday June 17, 2022 @02:57PM (#31782714)
This might be something I need to rethink—the entire card is a link, not just the tiny button. I don't expect most users to hover for long enough to see the wiggle; it's meant to say: "alright, you've been thinking about this for a while now, come on and click already."
Re:The most satisfying checkbox by countmora on Friday June 17, 2022 @04:55PM (#31784254)
The tile animation on your website is also really well done!
Re:The most satisfying checkbox by mosselman on Saturday June 18, 2022 @06:01AM (#31788583)
That first article is great! Thanks for sharing. I am on mobile so I haven’t been able to see the hover articles yet.
Re:The most satisfying checkbox by malshe on Friday June 17, 2022 @09:40PM (#31786599)
I love these examples! My favorite is the Citymapper’s hamburger icon
Re:The most satisfying checkbox by agumonkey on Friday June 17, 2022 @02:34PM (#31782433)
very reminiscent of 2future flash designer