Wildfox daisy's girl fall lookbook


×

Join CSSDeck and go Ad Free!

These are some stylish CSS only switch buttons, made based on this Adobe Illustrator tutorial, a simplified version of course.

The on/off states are made using a hidden checkbox and an absolutely positioned label above the button with the help of the :checked and (sibling) selectors. Therefor it is not working in IE < 9.

Animation is done with CSS3 transform by animating the top position of the switch handle elements.

Every size is specified in ems, so the button is easily scalable by changing the font-size on the.switch css class or any parent elements.

Related:

×

Coding Preferences


HTML

Preprocessor... HAML Jade Markdown Slim

CSS

Preprocessor... Less Stylus SASS SCSS SASS w/ Compass SCSS w/ Compass

Done

Prefixfree Normalize

Javascript

Preprocessor... Coffeescript

Done

More

A A

9 Comments

Aslam C:

Nice! n Complicated ya :p

Kushagra Agarwal:

Yeah, but it is still awesome and I respect Istvan's work!

Kushagra Agarwal:

Well, there are some switches in the real world that look and work like this one. Have a look at this. You're welcome.

Enrappture :

Really nice concept & execution.

Istvan Halmen:

I'm not an UX expert, but I don't agree with you completely
Why isn't it mobile friendly? It's easy to use it on a touchscreen
It's not colourblind friendly, that's right. A high contrast version of it could help.
Regarding the screen readers: it has a checkbox and a label which represents the state of the switch, so if the input field/label has proper naming, I don't see the problem.

simonpicos:

AWESOME!

Dom Briggs:

A shadow would be cool wildfox daisy's girl fall lookbook :)

Niraj Chauhan:

Awesome

Rishabh :

This is really amazing. I mean really, this is super awesome work. Keep it up buddy!

×

Your Default Settings - Preferences

Default HTML Preprocessor: None HAML Jade Markdown Slim

Default CSS Preprocessor: None Less Stylus SASS SCSS SASS w/ Compass SCSS w/ Compass

Default JS Preprocessor: None Coffeescript

Editor Positioning: Vertical Editors Horizontal Editors

Enable Prefixfree by Default:

Enable Normalize by Default:

A A

×

×

×

Validations

(Errors from your JS or Pre-Processors code)

  • HTML
  • CSS
  • JavaScript
HTML

CSS

JavaScript


Источник: http://cssdeck.com/labs/stylish-css-switch-buttons


Закрыть ... [X]

Vinci Mens Dark Blue 1930s Banker Wajahat mansoor embroidered different colors mens kurta eid collection


Wildfox daisy's girl fall lookbook

[The most common swimming strokes or styles are the freestyle stroke, the breaststroke, the backstroke and the butterfly.



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[



Wildfox daisy's girl fall lookbook

[