home
element
about us
contact us
Search for Elements
Button
50
Loader
50
Pagination
06
BG Pattern
25
Checkbox
06
Elements
Checkbox 01
<div class="myuihub-checkbox"> <input type="checkbox" id="myuihub-input"> <label for="myuihub-input"></label> </div>
.myuihub-checkbox input { display: none; } .myuihub-checkbox label { display: inline-block; width: 24px; height: 24px; background-color: transparent; border-radius: 100px; border: 1px solid black; margin: 0; background-image: url("data:image/svg+xml,<svg width='512' height='369' viewBox='0 0 512 369' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M500.103 11.8931C484.262 -3.96937 458.538 -3.95937 442.675 11.8931L184.211 270.368L69.3345 155.492C53.4721 139.63 27.7593 139.63 11.8968 155.492C-3.96562 171.355 -3.96562 197.068 11.8968 212.93L155.486 356.519C163.412 364.445 173.806 368.419 184.2 368.419C194.594 368.419 204.998 364.455 212.924 356.519L500.103 69.3298C515.966 53.4783 515.966 27.7546 500.103 11.8931Z' fill='white'/></svg>"); background-size: 0%; background-repeat: no-repeat; background-position: center; cursor: pointer; transition: all 300ms ease-in-out; } .myuihub-checkbox input:checked~label { background-size: 50%; background-color: black; --size: 15px; box-shadow: -10px -10px var(--size) 0px #FCAF45, 0 -10px var(--size) 0px #F77737, 10px -10px var(--size) 0px #833AB4, 10px 0 var(--size) 0px #E1306C, 10px 10px var(--size) 0px #FFDC80, 0 10px var(--size) 0px #FD1D1D, -10px 10px var(--size) 0px #5B51D8; }
Checkbox 02
<div class="myuihub-checkbox"> <input type="checkbox" id="myuihub-input"> <label for="myuihub-input"></label> </div>
.myuihub-checkbox { transform-style: preserve-3d; } .myuihub-checkbox input { display: none; } .myuihub-checkbox label { display: inline-block; width: 24px; height: 24px; background-color: transparent; border-radius: 4px; border: 1px solid #4f1d31; margin: 0; background-image: url("data:image/svg+xml,<svg width='512' height='369' viewBox='0 0 512 369' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M500.103 11.8931C484.262 -3.96937 458.538 -3.95937 442.675 11.8931L184.211 270.368L69.3345 155.492C53.4721 139.63 27.7593 139.63 11.8968 155.492C-3.96562 171.355 -3.96562 197.068 11.8968 212.93L155.486 356.519C163.412 364.445 173.806 368.419 184.2 368.419C194.594 368.419 204.998 364.455 212.924 356.519L500.103 69.3298C515.966 53.4783 515.966 27.7546 500.103 11.8931Z' fill='rgb(255, 221, 90)'/></svg>"); background-size: 0%; background-repeat: no-repeat; background-position: center; cursor: pointer; transition: all 300ms ease-in-out; } .myuihub-checkbox input:checked~label { background-size: 50%; background-color: #4f1d31; transform: rotateY(360deg); }
Checkbox 03
<div class="myuihub-checkbox"> <input type="checkbox" id="myuihub-input"> <label for="myuihub-input"></label> </div>
.myuihub-checkbox input { display: none; } .myuihub-checkbox label { display: inline-block; width: 24px; height: 24px; background-color: transparent; border-radius: 100%; border: none; margin: 0; background-image: url("data:image/svg+xml,<svg width='512' height='369' viewBox='0 0 512 369' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M500.103 11.8931C484.262 -3.96937 458.538 -3.95937 442.675 11.8931L184.211 270.368L69.3345 155.492C53.4721 139.63 27.7593 139.63 11.8968 155.492C-3.96562 171.355 -3.96562 197.068 11.8968 212.93L155.486 356.519C163.412 364.445 173.806 368.419 184.2 368.419C194.594 368.419 204.998 364.455 212.924 356.519L500.103 69.3298C515.966 53.4783 515.966 27.7546 500.103 11.8931Z' fill='darkgray'/></svg>"); background-size: 0; background-repeat: no-repeat; background-position: center; cursor: pointer; box-shadow: 3px 3px 5px #c5c5c5, -3px -3px 5px #ffffff; transition: all 300ms ease-in-out; } .myuihub-checkbox input:checked~label { background-size: 45%; box-shadow: inset 3px 3px 5px #c5c5c5, inset -3px -3px 5px #ffffff; }
Checkbox 04
<div class="myuihub-checkbox"> <input type="checkbox" id="myuihub-input"> <label for="myuihub-input"></label> </div>
.myuihub-checkbox input { display: none; } .myuihub-checkbox label { display: inline-block; width: 24px; height: 24px; background-color: transparent; border-radius: 4px; border: 2px solid #30a7fb; margin: 0; background-image: url("data:image/svg+xml,<svg width='512' height='369' viewBox='0 0 512 369' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M500.103 11.8931C484.262 -3.96937 458.538 -3.95937 442.675 11.8931L184.211 270.368L69.3345 155.492C53.4721 139.63 27.7593 139.63 11.8968 155.492C-3.96562 171.355 -3.96562 197.068 11.8968 212.93L155.486 356.519C163.412 364.445 173.806 368.419 184.2 368.419C194.594 368.419 204.998 364.455 212.924 356.519L500.103 69.3298C515.966 53.4783 515.966 27.7546 500.103 11.8931Z' fill='rgb(255, 255, 255)'/></svg>"); background-size: 0; background-repeat: no-repeat; background-position: center; cursor: pointer; transition: all 300ms ease-in-out; } .myuihub-checkbox input:checked~label { background-size: 55%; background-color: #30a7fb; animation: myuihubcheckbox 1s 1 forwards; } @keyframes myuihubcheckbox { 40% { transform: scale(1.5, 0.5); } 50% { transform: scale(0.5, 1.5); } 60% { transform: scale(1.3, 0.6); } 70% { transform: scale(0.8, 1.2); } 100% { transform: scale(1, 1); } }
Checkbox 05
<div class="myuihub-checkbox"> <input type="checkbox" id="myuihub-input"> <label for="myuihub-input"></label> </div>
.myuihub-checkbox input { display: none; } .myuihub-checkbox label { display: inline-block; width: 24px; height: 24px; background-color: transparent; border-radius: 4px; border: 2px solid #ef9c98; margin: 0; background-image: url("data:image/svg+xml,<svg width='512' height='369' viewBox='0 0 512 369' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M500.103 11.8931C484.262 -3.96937 458.538 -3.95937 442.675 11.8931L184.211 270.368L69.3345 155.492C53.4721 139.63 27.7593 139.63 11.8968 155.492C-3.96562 171.355 -3.96562 197.068 11.8968 212.93L155.486 356.519C163.412 364.445 173.806 368.419 184.2 368.419C194.594 368.419 204.998 364.455 212.924 356.519L500.103 69.3298C515.966 53.4783 515.966 27.7546 500.103 11.8931Z' fill='white'/></svg>"); background-size: 0; background-repeat: no-repeat; background-position: center; cursor: pointer; transition: all 300ms ease-in-out; } .myuihub-checkbox input:checked~label { background-size: 55%; background-color: #ef9c98; animation: myuihubcheckbox 0.6s ease; } @keyframes myuihubcheckbox { from { transform: scale(1, 1); } 30% { transform: scale(1.25, 0.75); } 40% { transform: scale(0.75, 1.25); } 50% { transform: scale(1.15, 0.85); } 65% { transform: scale(0.95, 1.05); } 75% { transform: scale(1.05, 0.95); } to { transform: scale(1, 1); } }
Checkbox 06
<div class="myuihub-checkbox"> <input type="checkbox" id="myuihub-input"> <label for="myuihub-input"></label> </div>
.myuihub-checkbox input { display: none; } .myuihub-checkbox label { display: inline-block; width: 24px; height: 24px; background-color: transparent; border-radius: 4px; border: 2px solid #2e2f2f; margin: 0; background-image: url("data:image/svg+xml,<svg width='512' height='369' viewBox='0 0 512 369' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M500.103 11.8931C484.262 -3.96937 458.538 -3.95937 442.675 11.8931L184.211 270.368L69.3345 155.492C53.4721 139.63 27.7593 139.63 11.8968 155.492C-3.96562 171.355 -3.96562 197.068 11.8968 212.93L155.486 356.519C163.412 364.445 173.806 368.419 184.2 368.419C194.594 368.419 204.998 364.455 212.924 356.519L500.103 69.3298C515.966 53.4783 515.966 27.7546 500.103 11.8931Z' fill='white'/></svg>"); background-size: 0; background-repeat: no-repeat; background-position: center; cursor: pointer; transition: all 300ms ease-in-out; } .myuihub-checkbox input:checked~label { background-size: 55%; background-color: #2e2f2f; }