Show HN: An HTML/CSS/JS toggle switch with happy and sad emojis
codepen.io
codepen.io
I wonder how using such a toggle could change the user behavior. I had a bit of a hard time turning the face into a sad face. I really liked it much better at green. It would be easier to convince me to pay money with this toggle.
Then again, I'm a sucker for happy faces and cute things, so maybe I'm just weak to this kind of thing.
(*) Yes, I'd like to receive further emails about louis C. K. things.
( ) No, leave me alone forever you fat bastard.
[1] https://www.youtube.com/watch?v=V3LJ9n43M-4 [2] http://www.mobygames.com/images/shots/l/112433-chuzzle-delux...
* Yes, I want to be a better person!
* No, I don't want to be a better person and am content to live a life of misery without this service.
You did the same thing.
Nothing wrong with being objective.
All of the widget is actionable yet the cursor is not always pointy.
It's one of my pet peeves.
That being said, the animation is beautifully done and the widget very cute. This is just eye-candy.
In "native apps" on desktops, all buttons look the same, so users know they're clickable because they've already learned it.
On the web however, every page looks different, so it is helpful to show the users you can click things by using the "hand" cursor.
Edit: only the second blink is funky. The first is how you recall.
Also if you use Atom you should install this package: https://atom.io/packages/svg-preview
Overall it's quite simple especially if you have experience with HTML and Canvas. Much easier for me than Inkspace.
And this isn't limited to web technologies and browsers.
I think it's fine for design to explore visual representations of an input but the HTML should try to stay clean.
What is the behaviour? Should I click the switch? Where do I click it: where it is or where I want it to go? Or should I drag it?
And usually only one of those actions work and I seem to always miss toggling it on the first try.
One minor annoyance is toggles is meant to respond instantly, and when I click it just accelerates tad slow as to make you think it's a bit lagged.
Looks very cool, though.
to read eg var toggleTl = new TimelineMax({paused:true}).timeScale(5);
instead. (I'm not the author, just fiddling)
we could argue it's unfortunate that iOS(?) decided to start making their "checkboxes" look a little like sliders, but they still only toggle values thus you don't slide them.
in any case, i get where you're coming from. using mousedown instead of click or up maybe kind of solves both use cases?
mousedown++ but also touch events
Because it’s large and I want to see it wiggle? :D
Btw this is a joke, but how far from reality is it? In Japan there is definitely a cute UI. I could even say that the Nintendo Switch UI is a cute UI.
I'm not the most familiar with codepen so I apologise if it's on there somewhere already.
Public pens are MIT licensed.
It doesn't matter what you say here, the license is kind of final for the code it's referencing.
IIRC CodePen does allow you to license your code differently, but it requires a "pro" account.
Judging by the fact you said you won't use it, you seem to have a working moral compass - unfortunately you are a minority.
I just wonder how long it's gonna last.