How to make Custom Animated Checkboxes with CSS

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

I know this is old but the "Mmm..." at the end killed me, great tutorial!

DrossProwler
Автор

Man your tuts restore my faith in the front end again.

calstate
Автор

Awesome video!

I just want to correct something that you said about label and input, the code below works just fine, you don't need to put one inside of another to work.

<input type="checkbox" name="check" id="item1">
<label for="item1">Item 1</label>

lucasbusellato
Автор

By supplying a for-attribute on the label and pass it the id of the input (checkbox) it will cause clicks on the label focus (check) the input. So you can place checkboxes outside the label.

zugdsbtngizudsgbnudsdsoiu
Автор

Awesome :)) I made a little animation on the checkbox when the user un-checks the button the result was pretty cool!!. Thanks to Trevis and Code course

manasemichaelmhando
Автор

I feel like a boss, now - because I managed to "translate" this to regular css-syntax while following the tutorial. Still old school.
The tricky part was the animation thing because of the vendor prefixes. Love the result, Travis, feels very organic. And right time for that, because that was one thing I needed to customize in bootstrap. My second most hated look there after the input-field glow there... Thx!

sdhpCH
Автор

Awesome! gonna implement this when I'm developing a new project!

InsaneMetalSoldier
Автор

Alex thanks alot for letting Travis come and teach us this! I totally love these tutorials from him and you both. :D Keep up the good work!

BippyMiester
Автор

I don't know why they still haven't changed the checkbox yet. So, we could perhaps style it like the same way as the other input box.
I also can't believe a video from 2014 will save my ass. Thanks Travis for saving this ass, again.
Quality content!

TheLollercaster
Автор

Thanks, but the title says "with CSS" and you're using SASS. What does the + icon before the CSS property mean?

basvandriel
Автор

How to make Custom Animated Checkboxes with CSS

codecourse
Автор

if you give the label a for attribute and the give the checkbox an id that matches the value of the for attribute, it doesn't matter where the checkbox is on the page, it would be selected if the label is clicked.
e.g
<label for="coolytbutton">click on me</label>
<input type="checkbox" id="coolytbutton">

samueloloruntoba
Автор

input element can be outside of label aswell and still work on clicking on label to check it if label has "FOR" attribute same as input's "ID" attribute ;) hope it helps ;) but nice tut... ;) love your and Alex's work, keep it up ;)
e.g.
<label
<input type="checkbox" name="checkbox" id="checkbox1" />

boska
Автор

Hello Travis this is a very good and informative tutorial!
Good job!

TheDrkCodr
Автор

I like that a lot. Go Travis, Go Travis, Go Travis.

bysolly
Автор

Nice tutorial which editor are you using for the design.

alaoabiodun
Автор

Pretty nice, thanks! I wish you would have added a little bit about browser-support and/or fallback solutions! :-)

ChristianRuppelt
Автор

The annotation to the CSS Selectors Video on DevTips isn't linked properly.

OmranJamalReal
Автор

Thanks, very good. I didn't even know about this implementation.

nekitsan
Автор

DevTips, it's a great video. And please tell what text editor you are using, it looks nice!

troublemaker