Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

CSS - The single coolest API technique you can imagine.

DEV Community·Jane Ori·25 days ago
#GAx2l8np
#css#inverted#space#api#fullscreen#toggle
Reading 0:00
15s threshold

To simply call Kizu's Cyclic Space Toggles an upgrade to my Space Toggle technique is like calling apple computers an upgrade to apples . I'll prove it, slowly. my Space Toggles are a checkbox no matter how complex the downstream implications are, or how many properties the space toggle toggles, your input is a single binary on and off so there are only ever two states produced by a single toggle. (two space toggles is 4 states, three toggles is 8, 4 is 16, it's binary so it does get cooler fast! But... you're adding multiple input toggles to reach that, which means the API you expose tells your dev users to set multiple properties. And it's hard enough to tell a dev to set even a single CSS property without hiding it behind a class name. lol) Kizzu's invention, Cyclic Space Toggles, are much more. Instead of a one-bit checkbox, you get an N-bit radio-button set, or a dropdown select .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More