﻿input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.labelCheck {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: grey;
    display: block;
    border-radius: 25px;
    position: relative;
}

    .labelCheck:after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 15px;
        height: 15px;
        background: #fff;
        border-radius: 30px;
        transition: 0.3s;
    }

input:checked + .labelCheck {
    background: #009ddd;
}

    input:checked + .labelCheck:after {
        left: calc(100% - 5px);
        transform: translateX(-100%);
    }

.labelCheck:active:after {
    width: 50px;
}
