กรุณากรอกข้อมูลของท่าน...
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,700); *, *::after, *::before { box-sizing: border-box; } .toggle-button { margin: 0 10px; } .toggle-button { position: relative; display: inline-block; color: #fff; } .toggle-button label { display: inline-block; text-transform: uppercase; cursor: pointer; } .toggle-button input { display: none; } .toggle-button__icon { cursor: pointer; pointer-events: none; } .toggle-button__icon:before, .toggle-button__icon:after { } /* * Toggle button variables */ /* * Toggle button styles */ .toggle-button--aava label { height: 40px; line-height: 40px; transition: all 0.2s; border-radius: 0.5rem; } .toggle-button--aava label:before, .toggle-button--aava label:after { position: absolute; right: 2rem; transition: all 0.2s .1s ease-out; } .toggle-button--aava label:before { content: attr(data-on-text) ; } .toggle-button--aava label:after { content: attr(data-off-text); color: #a2a3a6;} .toggle-button--aava input[type=checkbox] + label { width: 125px; background: #f2f0f0; } .toggle-button--aava input[type=checkbox] + label:before { opacity: 0; transform: translate(0, 20px); } .toggle-button--aava input[type=checkbox] + label:after { opacity: 1; transform: translate(0, 0); } .toggle-button--aava input[type=checkbox]:checked ~ label { width: 125px; background: #2cabe1; } .toggle-button--aava input[type=checkbox]:checked ~ label:before { opacity: 1; transform: translate(0, 0); } .toggle-button--aava input[type=checkbox]:checked ~ label:after { opacity: 0; transform: translate(0, -20px); } .toggle-button--aava input[type=checkbox]:checked ~ .toggle-button__icon:before { } .toggle-button--aava input[type=checkbox]:checked ~ .toggle-button__icon:after { transform: translate(30%) rotate(-45deg); } .toggle-button--aava .toggle-button__icon { position: absolute; left: 0; top: 0; height: 50px; width: 50px; } .toggle-button--aava .toggle-button__icon:before, .toggle-button--aava .toggle-button__icon:after { } .toggle-button--aava .toggle-button__icon:before { } .toggle-button--aava .toggle-button__icon:after { } }