Create A ON-OFF Bulb With Just A Checkbox | CSS Customized checkbox | CSS Tutorial

preview_player
Показать описание
In today's video, learn how to create a customized checkbox with CSS.
_
🔥My Instagram🔥
_
🎥Tools Used🎥
Sublime Text Editor.
'Browser Sync' Plugin for live coding.
Showmore Screen Recorder.
_
🎵Music🎵
Рекомендации по теме
Комментарии
Автор

It would have been easier using javascript's onclick event and a small function with if statements.
For example:


<div id='bulb' onclick='onoff()'></div>

<script>
var bulb =

function onoff() {
if (bulb.style.backgroundColor === "yellow") {
bulb.style.backgroundColor = "white"
} else {
bulb.style.backgroundColor = "yellow"
}
}
</script>

maoitsme
Автор

Esta buenisimo! Nunca supe eso de input:checked O lo de input [type="checkbox"] muchas gracias!

urrova
Автор

Awesome video as always!
Please make a video on flex positioning in CSS!
I want to learn that

professorspace
Автор

Hard Work ... 😍
Love it & so for music ...!

geekofia
Автор

Very neat graphic and sweet code-along! I was hoping for the animation to be a little more realistic though.

invictuz
Автор

Wow awesome mitali keep coding
It's me again ps:my name is Ali
A small question pls
What is the different between <article>and<div>and <span>😀😊

alitarek
Автор

Congratulations almost there 1k subscribers 😍😍🎉🎉🎉

alitarek
Автор

Another amazing code....and ....soon to reach 1k

madhavjha
Автор

You are about to hit 1k sub ... good job.😊

geekofia
Автор

Explain something 😮😮 i donot understand

saidharshan
Автор

can you please send the code to me that would be really grate thanks in advance!!

litchyt
Автор

I want help for u to me plz help how to start YouTube channel.

ratnakarrockzz
Автор

Mitali can you please send me the code?

Ahmedinho