DEV Community

Discussion on: Creating day-night CSS only toggle switch

hugekontrast profile image
Ashish Khare😎

Dope. Only a question, will this not make application slower or will it have any effect on the speed and overall feel of fluency?

dailydevtips1 profile image
Chris Bongers Author

Good question Ashish,

with stuff like this, it's always a battle of coolness vs speed/usability.
It depends on what it's going to be used for.

In my case it's really more of a test and seeing what's possible, the code is pretty minimal it will just eat up some CSS space.

If you are focussing on getting the fastest website out there, I would suggest not using this and sticking to default checkboxes.

hugekontrast profile image
Ashish Khare😎 • Edited

Noted. 😊