Origami Paper Fold
0 viewshard
Background:
1
2
3
4
5
6
7
8
9
10
<div class="origami-fold-container">
<input type="checkbox" />
<div class="origami-fold-checkmark">
<div class="paper-fold-1"></div>
<div class="paper-fold-2"></div>
<div class="paper-fold-3"></div>
<div class="origami-check">✓</div>
</div>
<span class="origami-fold-label">Paper Fold</span>
</div>Origami Paper Fold
0 viewshard
Background:
Origami Paper Fold
1
2
3
4
5
6
7
8
9
10
<div class="origami-fold-container">
<input type="checkbox" />
<div class="origami-fold-checkmark">
<div class="paper-fold-1"></div>
<div class="paper-fold-2"></div>
<div class="paper-fold-3"></div>
<div class="origami-check">✓</div>
</div>
<span class="origami-fold-label">Paper Fold</span>
</div>Was this helpful?
What is inside Origami Paper Fold
Origami Paper Fold is a CSS checkbox built with gradient fills, transforms, defined in 99 lines across 14 selectors.
29
CSS properties
14
Selectors
99
Lines of CSS
3
Formats
Techniques used
TransitionsTransformsGradientsChecked stateFlexbox
CSS properties in this component
align-itemsbackgroundborderborder-colorborder-radiusborder-styleborder-widthbottomcolorcursordisplayfont-sizefont-weightgapheightinputjustify-contentleftopacityoverflowpositionrighttoptransformtransform-styletransitionuser-selectwidthz-indexAccessibility check1 to fix
- Built on a native <input> element, so keyboard focus and screen reader semantics work without extra attributes.
- 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 HTML, CSS, Tailwind and adapt it freely.