js单选按钮动画特效
来源:互联网 发布:java web项目规范 编辑:程序博客网 时间:2024/05/19 10:15
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Radio</title>
<style>
.radio-2 {
width: 900px;
padding: 3% 0;
margin: 50px auto;
background-color: darkseagreen;
text-align: center;
}
.radio-2 label {
display: inline-block;
width: 28px;
height: 28px;
overflow: hidden;
border: 1px solid #eeeeee;
border-radius: 100%;
margin-right: 10px;
background-color: #ffffff;
position: relative;
cursor: pointer;
}
.radio-2 label:after {
content: "";
position: absolute;
top: 4px;
left: 4px;
width: 20px;
height: 20px;
background-color: #666666;
border-radius: 50%;
transform: rotate(-180deg);
transform-origin: -2px 50%;
transition: transform .2s ease-in;
}
.radio-2 [type="radio"] {
display: none;
}
.radio-2 [type="radio"]:checked + label:after{
transform: rotate(0deg);
transition: transform .2s ease-out;
}
</style>
</head>
<body>
<div class="radio-2">
<input type="radio" name="radio-2" id="radio-2-1" checked="checked">
<label for="radio-2-1"></label>
<input type="radio" name="radio-2" id="radio-2-2">
<label for="radio-2-2"></label>
<input type="radio" name="radio-2" id="radio-2-3">
<label for="radio-2-3"></label>
</div>
<a href="http://mp.weixin.qq.com/s?__biz=MzAxODE2MjM1MA==&mid=2651551290&idx=2&sn=3484ecbd7f8a1b854cc13eaa7be21094&chksm=8025a1fbb75228edae0d2669853659f2a9a6f7d3cb7a8592f80f77540f3186cdb83adfe29a3f&scene=4#wechat_redirect">博文链接</a>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Radio</title>
<style>
.radio-2 {
width: 900px;
padding: 3% 0;
margin: 50px auto;
background-color: darkseagreen;
text-align: center;
}
.radio-2 label {
display: inline-block;
width: 28px;
height: 28px;
overflow: hidden;
border: 1px solid #eeeeee;
border-radius: 100%;
margin-right: 10px;
background-color: #ffffff;
position: relative;
cursor: pointer;
}
.radio-2 label:after {
content: "";
position: absolute;
top: 4px;
left: 4px;
width: 20px;
height: 20px;
background-color: #666666;
border-radius: 50%;
transform: rotate(-180deg);
transform-origin: -2px 50%;
transition: transform .2s ease-in;
}
.radio-2 [type="radio"] {
display: none;
}
.radio-2 [type="radio"]:checked + label:after{
transform: rotate(0deg);
transition: transform .2s ease-out;
}
</style>
</head>
<body>
<div class="radio-2">
<input type="radio" name="radio-2" id="radio-2-1" checked="checked">
<label for="radio-2-1"></label>
<input type="radio" name="radio-2" id="radio-2-2">
<label for="radio-2-2"></label>
<input type="radio" name="radio-2" id="radio-2-3">
<label for="radio-2-3"></label>
</div>
<a href="http://mp.weixin.qq.com/s?__biz=MzAxODE2MjM1MA==&mid=2651551290&idx=2&sn=3484ecbd7f8a1b854cc13eaa7be21094&chksm=8025a1fbb75228edae0d2669853659f2a9a6f7d3cb7a8592f80f77540f3186cdb83adfe29a3f&scene=4#wechat_redirect">博文链接</a>
</body>
</html>
0 0
- js单选按钮动画特效
- css特效单选按钮
- 带loading指示器的js提交按钮动画特效
- 带loading指示器的js按钮动画特效
- js单选按钮验证
- js操作单选按钮
- js测试单选按钮
- 2.js按钮特效大全
- CSS3和js炫酷点击按钮3D翻转动画特效
- 02-JS特效-匀速动画
- 02-JS特效-匀速动画
- js:取得单选按钮的值
- js获得单选按钮的值
- js 得到单选按钮组
- 单选按钮 全部没选中 js
- 单选按钮的js选中操作
- JS获取单选按钮的值
- js获取单选按钮的值
- 【Android实战之旅 003】Android UI模板设计
- 从0开始学习 GitHub 系列之「向GitHub 提交代码」
- 括号配对算法
- 第九章:菱形
- 从0开始学习Git系列之「Git简介」
- js单选按钮动画特效
- c++获取注册表中程序的安装路径
- 从0开始学习Git系列之「Git初阶」
- POJ 1722 SUBTRACT 背包
- AngularJs ng-repeat 必须注意的性能问题 - 灰机_不会飞
- <转>SFTP 和FTPS的区别是什么?
- Lua+Nginx 安装
- 从0开始学习Git系列之「Git中阶」
- lLinux命令-4:mkdir(Make Directory)命令