Fog Rolling

0 viewsmedium
Background:
Fog Rolling
1
Was this helpful?

What is inside Fog Rolling

Fog Rolling is a CSS toggle switch built with gradient fills, transforms, layered shadows, defined in 58 lines across 9 selectors.

22
CSS properties
9
Selectors
58
Lines of CSS
2
Formats

Techniques used

TransitionsTransformsGradientsShadowsChecked stateFlexbox

CSS properties in this component

align-itemsbackgroundborderborder-colorborder-radiusbox-shadowcolorcursordisplayfont-weightgapheightinputleftopacityoverflowpositiontoptransformtransitionuser-selectwidth

Accessibility check1 to fix

  • No focus style is defined. Add one before shipping, or keyboard users lose track of position.

These notes are generated by reading this component's own source, so they describe what it actually does rather than what a template says. Copy the code above in CSS, Tailwind and adapt it freely.