.al-toggle-button{
appearance: none;
-webkit-appearance: none;
position: relative;
width: 52px;
height: 32px;
background: #dfdfdf;
border-radius: 16px;
border: 1px solid #dfdfdf;
outline:;
box-sizing: border-box;
}
.al-toggle-button:checked{
border-color: #04be02;
background-color: #04be02;
}
.al-toggle-button:before, .al-toggle-button:after{
content: " ";
position: absolute;
top:;
left:;
height: 30px;
border-radius: 15px;
transition: transform 0.3s;
transition: -webkit-transform 0.3s;
transition: transform 0.3s, -webkit-transform 0.3s;
-webkit-transition: -webkit-transform 0.3s;
}
.al-toggle-button:before{
width: 50px;
background-color: #fdfdfd;
}
.al-toggle-button:after{
width: 30px;
background-color: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.al-toggle-button:checked:before{
transform: scale(0);
-webkit-transform: scale(0);
}
.al-toggle-button:checked:after{
transform: translateX(20px);
-webkit-transform: translateX(20px);
}
<input type="checkbox" class="al-toggle-button">

最新文章

  1. 使用ganglia监控hadoop及hbase集群
  2. 关于JavaScript继承的那些事
  3. Linux shell特性
  4. cocos布局分析
  5. java通过ftp和sftp上传war包上传到Linux服务器实现自动重启tomcat的脚本代码
  6. HttpWebRequest 模拟登录响应点击事件(分享自己用的HttpHelper类)
  7. 安卓模拟器还是&quot;genymotion&quot;最靠谱.
  8. java伪代码《大道至简》
  9. Docker系列之swarm集群搭建
  10. [SQL]LeetCode262.行程和用户 | Trips and Users
  11. legend2---开发日志11(如何提高终极开发效率)
  12. Windows下文件夹扩展名
  13. 048 SparkSQL自定义UDAF函数
  14. docker+springboot+elasticsearch+kibana+elasticsearch-head整合(详细说明 ,看这一篇就够了)
  15. centos 6.X下建立arduino开发环境
  16. Springboot实现热部署
  17. JDK(java se development kit)的构成
  18. CE+X64dbg外挂制作教程 [提高篇]
  19. Shader开发之三大着色器
  20. CSS 高级选择器

热门文章

  1. 在mesh client示例中加入spi_slave接口(without IDE)
  2. ServiceStack.Ormlit sqlserver枚举类型映射字段类型为varchar
  3. JS中通过数组的方式操作字符串 数组是个好东西 ....
  4. Python中的Numeric
  5. Android 网络编程 API笔记 - java.net 包 权限 地址 套接字 相关类 简介
  6. # ML学习小笔记—Classification
  7. TCP系列33—窗口管理&流控—7、Silly Window Syndrome(SWS)
  8. phpcms黄页,不能选择行业。解决办法
  9. MongoDb企业应用实战(一) 写在MongoDB应用介绍之前(ii)
  10. jdbc关闭连接顺序