ios开关按钮
2024-10-01 05:20:59
.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">
最新文章
- 使用ganglia监控hadoop及hbase集群
- 关于JavaScript继承的那些事
- Linux shell特性
- cocos布局分析
- java通过ftp和sftp上传war包上传到Linux服务器实现自动重启tomcat的脚本代码
- HttpWebRequest 模拟登录响应点击事件(分享自己用的HttpHelper类)
- 安卓模拟器还是";genymotion";最靠谱.
- java伪代码《大道至简》
- Docker系列之swarm集群搭建
- [SQL]LeetCode262.行程和用户 | Trips and Users
- legend2---开发日志11(如何提高终极开发效率)
- Windows下文件夹扩展名
- 048 SparkSQL自定义UDAF函数
- docker+springboot+elasticsearch+kibana+elasticsearch-head整合(详细说明 ,看这一篇就够了)
- centos 6.X下建立arduino开发环境
- Springboot实现热部署
- JDK(java se development kit)的构成
- CE+X64dbg外挂制作教程 [提高篇]
- Shader开发之三大着色器
- CSS 高级选择器
热门文章
- 在mesh client示例中加入spi_slave接口(without IDE)
- ServiceStack.Ormlit sqlserver枚举类型映射字段类型为varchar
- JS中通过数组的方式操作字符串 数组是个好东西 ....
- Python中的Numeric
- Android 网络编程 API笔记 - java.net 包 权限 地址 套接字 相关类 简介
- # ML学习小笔记—Classification
- TCP系列33—窗口管理&流控—7、Silly Window Syndrome(SWS)
- phpcms黄页,不能选择行业。解决办法
- MongoDb企业应用实战(一) 写在MongoDB应用介绍之前(ii)
- jdbc关闭连接顺序