<input type="checkbox" id="switch" /><label for="switch">Toggle</label>
input[type=checkbox]{height:0;width:0;visibility:hidden}
label{cursor:pointer;text-indent:-9999px;width:100px;height:50px;background:grey;display:block;border-radius:100px;position:relative}
label:after{content:'';position:absolute;top:5px;left:5px;width:40px;height:40px;background:#fff;border-radius:90px;transition:.2s}
input:checked + label{background:#5661DC}
input:checked + label:after{left:calc(100% - 5px);transform:translateX(-100%)}
label:active:after{width:130px}
'IT > Develop' 카테고리의 다른 글
IE CSS hacks - IE6, 7, 8, 9, 10, 11 (0) | 2019.10.22 |
---|---|
Sublime Text (0) | 2019.10.22 |
웹스톰 설정 / git 연결 / FTP, SFTP 연결 / 로컬에서 바로 올릴때 (0) | 2019.10.22 |