Creating a CSS-Only Toggle Switch (Custom Checkbox) - Tutorial

preview_player
Показать описание
View the Source Code here:

In today's video I'll be demonstrating how to create a CSS-only toggle switch (with transitions) - this can be used as a replacement for traditional HTML checkbox inputs.

Support me on Patreon:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #html #css
Рекомендации по теме
Комментарии
Автор

Actually, since you're placing the input element inside the label tag you don't really need to add the for attribute to the label.

Great one Dom, waiting for more!

emmanuelrf
Автор

Awesome video, i'm watching your videos the past month and you are really great! If you continue like this you're going to be on the top. Thank you.

PanosAnas
Автор

awesome video, well explained !
you are the only one who taught correctly .

hyperkon
Автор

Great video! Thank you for the breakdown

CarloNyte
Автор

You're just an amazing tutorial-creator!

karenkharatyan
Автор

This helped me out so much, thank you. Take my like.

kugi
Автор

mate iv learned from you a lot, and thank you really so much for all your tutors <3 😍

joe
Автор

You are an amazing teacher. I love your tutorials. 👍🏻

kugh
Автор

Thank you very much that you put the source code ! :)

chrisluci
Автор

I can always count on dcode when all else fails. I was pulling my hair out trying to do it in tailwind lol

keifer
Автор

Great and very useful tutorial! Thanks!

no_name_mix
Автор

Very informative, practical tutorial sir you are great sir thanks

wasimsuperb
Автор

Thanks very much. this is professional job

bek
Автор

Love your videos! Would be great if you would add a link to the source / example or to CodePen in the description. Keep up the good work!

seefusiontech
Автор

Thanks a lot for this useful and amazing video..

A.M-sz
Автор

with this you can actually make a dark mode and light mode enable with only CSS!!

lucaslindgren
Автор

Nice, thank you for the video! My transition doesn't work for some reason even though I copy-pasted the code.. Anyone else experiencing this?

nielslytzdk
Автор

Today I learn an interesting thing that you can hide an element by just specifying hidden attribute.try it

ankitkumarjat
Автор

Another great tutorial!!
Can you please share the code with us Dom?

Автор

Please make a video about "how to remove html page title":)

tastudiopro