
On / Off Toggle
Just a little on/off widget to take the place of what would normally be a checkbox.
April 28, 2010
This shot is a Rebound of...
On / Off Toggle
by Nathan Smith Pro
Tags
keyboard shortcuts: ← previous shot → next shot L or F like

32,531,629,443 pixels dribbbled
12 Responses
Pro
Nathan Smith
Here's the on/off toggle I posted earlier, in actual working code. It's a class on a <label> that wraps around a visibility:hidden checkbox. JavaScript looks to see if the checkbox is checked or unchecked, and adjusts the background position accordingly.
You might wonder: Why not just use a checkbox? We wanted this UI to imply immediate effect, rather than the user wonder if they needed to go click a submit button somewhere.
almost 2 years ago
Pro
Rogie
Really good logic behind it's use Nathan. Awesome.
almost 2 years ago
Pro
Eren Emre
Clever!
almost 2 years ago
Pro
Jesse Gardner
I love how the text color reflects on the switch. Nice attention to detail. So freaking slick!
almost 2 years ago
I'm diggin' it
almost 2 years ago
Pro
Chandler Van De Water
Awww, man, you didn't add any green glow to the inside of the button....
Logic makes a lot of sense, though. Brainstapaper-ed.
almost 2 years ago
I definitely appreciate the logic behind why you used this control.
That said, I've never been a big fan of these. I never know where to click. When it's in the 'off' state, you have to click the word 'off' to turn it on? Always seemed backwards to me. I usually attempt to click and drag the button to the other side, as it looks more like as slider.
almost 2 years ago
Pro
Nathan Smith
@Chandler - I tried it with a little more glow, but it looked a bit eerie. I think the slider has *just* enough, calling a bit more attention to it. Whereas, adding glow to the inset just made the whole thing look kinda Alienware-ish. :)
almost 2 years ago
@Nathan — can we get a live demo? I want to click to play around with it...
almost 2 years ago
Pro
Nathan Smith
@Darren - Sorry, but it's for a subscription based web app. :(
almost 2 years ago
When are you going to make us a sweet tutorial on this Nathan? :P
almost 2 years ago
Rebound
Feature Configuration
by David Brooks
This interface will allow our users to turn specific features in our application on or off. Reusing Nathan's switch interaction was a no-brainer.
When the user clicks a feature, the switch appears in the ribbon and the configuration appears to the right.
over 1 year ago