表单 Input 特效
来源:互联网 发布:亚瑟士 知乎 编辑:程序博客网 时间:2024/06/05 22:39
<html><head><title>表单 Input 特效</title><style>*, *::before, *::after { box-sizing: border-box;}div.row { counter-increment: counterA; height: 20vw; padding-left: 15vw; position: relative; width: 100%;}div.row::before { color: rgba(255, 255, 255, 0.05); content: counter(counterA, decimal); font-size: 10vw; left: 0; position: absolute;}div.row label { display: block; float: left; margin: 8vw 2vw; position: relative;}div.row label input { background: rgba(255, 255, 255, 0.1) none repeat scroll 0 0; border: 1px solid #fff; border-radius: 4px; color: #377d6a; height: 30px; line-height: 30px; outline: medium none; padding: 4px 10px; text-indent: 38px; transition: all 0.3s ease-in-out 0s; width: 200px;}div.row label input + span { background: #7ab893 none repeat scroll 0 0; border-radius: 4px 0 0 4px; color: #fff; display: inline-block; left: 0; padding: 7px 4px; position: absolute; top: 0; transform: perspective(300px); transform-origin: left center 0; transition: all 0.3s ease-in-out 0s;}div.row label input:focus, div.row label input:active { background: rgba(255, 255, 255, 0.2) none repeat scroll 0 0; text-indent: 0;}div.row{ background: #7a371f none repeat scroll 0 0;}div.row label input { background: transparent none repeat scroll 0 0; border-radius: 0; border-width: 0;}div.row label input + span { background: transparent none repeat scroll 0 0;}div.row label input + span::before { background-color: #fff; bottom: 0; content: ""; height: 1px; left: 0; position: absolute; width: 200px;}div.row label input:focus + span, div.row input:active + span { background: transparent none repeat scroll 0 0; transform: translateY(-100%);}</style></head><body><div class="row"><label><input type="text"><span>姓名</span></label><label><input type="text"><span>年龄</span></label><label><input type="text"><span>身高</span></label><label><input type="text"><span>体重</span></label><label><input type="text"><span>邮箱</span></label></div></body></html>
实例图:
0 0
- 表单 Input 特效
- 特效表单
- html文本框input特效
- 表单相关特效整理
- 表单相关特效整理
- 表单相关特效整理
- 表单相关特效整理
- 表单相关特效整理
- 表单特效回车键
- 一些页面表单特效
- input 输入框样式特效
- CSS3 input 输入框蓝光特效
- INPUT表单背景变换
- javaScript隐藏input表单
- form表单input标签
- input表单获取值
- input表单提示文字
- 【jQuery】:input表单选择器
- GIMP
- java_web Servlet第一课
- uCOS的软件定时器
- 将Eclipse代码导入到AndroidStudio的两种方式
- jqGrid的treegrid的bug修复
- 表单 Input 特效
- 【人力资源】--- select下拉框
- virtio后端方案vhost
- 常用原生JS方法总结(兼容性写法)
- 电商网站分类导航效果--CSS实现(二) 二级菜单
- 第八周项目3—指向学生类的指针(2)
- 西门子SIMATIC控制器爆2漏洞
- Java并发编程:synchronized
- mongo replica set维护