Man you doing perfect things. Your channel is underrated. Im sorry for others who do not know your channel. Keep going.
@WebDevXpert9 ай бұрын
Toggle Button In HTML CSS JavaScript |Animated Toggle Button using HTML CSS, JS|Dark and Light Mode : kzbin.info/www/bejne/jKvNkoSDbcShr6c
@SlimBloodworth2 жыл бұрын
I ALWAYS enjoy your videos and learn something new each time! Thanks!
@N.A.Schilder7 ай бұрын
Amazing video! I have one tip for accessibility, if you don't mind me giving it to you. If you put the visibility to hidden, the checkbox can't always be found by people who use screenreaders or keyboards only. So if you put opacity to 0 and give it a position of absolute, it can always be found by everyone. :)
@Riya-fu1qz2 ай бұрын
thank you! i was looking for it from an accessibility standpoint too!
@Pupu._2 жыл бұрын
Didn’t know if switch is made from input element. Thanks!
@quielsystems2 жыл бұрын
I love it! Keep uploading videos like this!
@kiaru5131 Жыл бұрын
This is perfect. Thanks for sharing!
@Lokesh31522 жыл бұрын
Pls don't stop keep making videos
@EntertainmentTv3122 жыл бұрын
Very Awsome Video.Thanks for making this video
@appleman29 Жыл бұрын
did not work. I did it right but not showing on my site
@thegoldgamer633911 ай бұрын
maybe you added z-index:-1;
@daanbouma89797 ай бұрын
Then u didn’t do it right
@hibephong3 ай бұрын
Thank you ❤
@k4nh00 Жыл бұрын
Thank you very much for your help, it was identical to yours. The only comment I can leave is that it is much easier with javascript than with css. Greetings!
@FrauleinRose2 жыл бұрын
i'm here for the moon icon 🌙🙌
@XxThirdybirdxX6 ай бұрын
idk too
@mritellthings85542 ай бұрын
this works! but may I ask? why does it only cover part of my website? but not all?
@Daniblueboy2 жыл бұрын
awesome, thanks
@amjadnikzad48902 жыл бұрын
Well done
@mahdinajafi3707 Жыл бұрын
my html css: Yours: I hate myself
@funkeboodha Жыл бұрын
Unless your website is only one page, this solution will not save your preference from page to page. It will load whatever state is default in your CSS.
@zedwelly5034 Жыл бұрын
Just the problem for me. Do you know the solution for it to be on a whole site remembered?
@eamontanner6778 Жыл бұрын
You need to create a session for this. I'd recommend creating a database and storing user preferences in there. You can interface with the database using a server-side language like php.
@aryanmn15692 жыл бұрын
Now I got why it's called stapler
@mohamedyoussef88352 жыл бұрын
Awesome video ++++++ 😃
@sam-nc8zv2 жыл бұрын
Superb content... Gald I found your channel.. #subscribed
@אביתרוייס-צ1ק10 ай бұрын
Why do we have a + in: “input:checked +label”? It’s not supposed to be: “input:checked label”?
@VXTivkot Жыл бұрын
insteAD OF USING ACTIVE YOU SHOULD USE THE hover
@אביתרוייס-צ1ק10 ай бұрын
Awesome
@highinspiration99882 жыл бұрын
Amazing
@matehun52192 жыл бұрын
Make a vid from audio visualizers :D
@kashishyenare155611 ай бұрын
My inner icon isn't visible I've coded the whole code step by step
@williambane17863 ай бұрын
same
@reynandelizo1480 Жыл бұрын
I have an issue on sun and moon svg icons outside in my label tag even the position of label is realtive I don`t know the issue.
@Asdpire11 ай бұрын
Hi, I don't know if this message reaches you, but the svg:s have a defaulf height which differs from the desired, so just set height to the same as the toggle switch. Hope this helps!
@nexi__cz20619 ай бұрын
@@Asdpire you just saved me 2-3 hours figuring out how to fix that i love you
@broli4502 жыл бұрын
You should use ids and classes
@anniepunk Жыл бұрын
label:active:after is not working
@hikari._.zasureiya1540 Жыл бұрын
use label::active instead of laber:active and replace ::active with every :active
@cuongie2 жыл бұрын
TAYLOR CLASS TSKEOVER
@justinran16932 жыл бұрын
Pp
@unexplainablefish523 ай бұрын
522 error
@vnxcius2 жыл бұрын
pls make a version using js
@zishanchaudhary221 Жыл бұрын
const toggle = document.querySelector("#darkmode-toggle"); let bg = document.body; toggle.addEventListener("change", function () { if (this.checked) { // Toggle button is checked // Perform actions for the checked state bg.style.backgroundColor = "black"; } else { // Toggle button is unchecked // Perform actions for the unchecked state bg.style.backgroundColor = "white"; } }); add these lines in a script tag and thats it.
@PutriAisyah-w6h8 ай бұрын
Oke gelap dan in the sun 1:31
@mirjalol_shamsiddinov2 жыл бұрын
just waw
@VijayKumarYenuganti6 ай бұрын
sir how to get svg code
@mraloush89592 жыл бұрын
this is so overdone lol. u dont know how to code. u can do the exact samt thing in 10 lines css.
@paulhamacher7732 жыл бұрын
What an arrogant comment. Every single line serves its specific purpose. To me you're just bullshitting here unless you prove otherwise.
@mraloush89592 жыл бұрын
@@paulhamacher773 u look like an npc
@paulhamacher7732 жыл бұрын
And now you can't even think of anything better than commenting on my appearance. Pathetic.