CSS3 过渡特性创建信封效果的联系表单_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 11:54:25
原创
1247人浏览过

  最近给大家分享 css3 效果比较多,都是充分运用了 css3 来实现的。通过 css3 的新特性,我们创作出好的交互和效果的可能性大大增加。这篇文章中,我想与大家分享使用 css3 过渡特性实现的信封效果的联系表单。

 

 

效果演示     插件下载

立即学习前端免费学习笔记(深入)”;

表单大师AI
表单大师AI

一款基于自然语言处理技术的智能在线表单创建工具,可以帮助用户快速、高效地生成各类专业表单。

表单大师AI 74
查看详情 表单大师AI

 

CSS3 代码:

	#form_wrap { overflow:hidden; height:446px; position:relative; top:0px;		-webkit-transition: all 1s ease-in-out .3s;		-moz-transition: all 1s ease-in-out .3s;		-o-transition: all 1s ease-in-out .3s;		transition: all 1s ease-in-out .3s;}		#form_wrap:before {content:"";		position:absolute;		bottom:128px;left:0px;		background:url('images/before.png');		width:530px;height: 316px;}		#form_wrap:after {content:"";position:absolute;		bottom:0px;left:0;		background:url('images/after.png');		width:530px;height: 260px; }	#form_wrap.hide:after, #form_wrap.hide:before {display:none; }	#form_wrap:hover {height:776px;top:-200px;}	form {background:#f7f2ec url('images/letter_bg.png'); 		position:relative;top:200px;overflow:hidden;		height:200px;width:400px;margin:0px auto;padding:20px; 		border: 1px solid #fff;		border-radius: 3px; 		-moz-border-radius: 3px; -webkit-border-radius: 3px;		box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 27px #fff;		-moz-box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 14px #fff;		-webkit-box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 27px #fff;		-webkit-transition: all 1s ease-in-out .3s;		-moz-transition: all 1s ease-in-out .3s;		-o-transition: all 1s ease-in-out .3s;		transition: all 1s ease-in-out .3s;}		#form_wrap:hover form {height:530px;}		label {			margin: 11px 20px 0 0; 			font-size: 16px; color: #b3aba1;			text-transform: uppercase; 			text-shadow: 0px 1px 0px #fff;		}		input[type=text], textarea {			font: 14px normal normal uppercase helvetica, arial, serif;			color: #7c7873;background:none;			width: 380px; height: 36px; padding: 0px 10px; margin: 0 0 10px 0;			border:1px solid #f8f5f1;			-moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;			-moz-box-shadow: inset 0px 0px 1px #726959;			-webkit-box-shadow:  inset 0px 0px 1px #b3a895; 			box-shadow:  inset 0px 0px 1px #b3a895;		}			textarea { height: 80px; padding-top:14px;}		textarea:focus, input[type=text]:focus {background:rgba(255,255,255,.35);}		#form_wrap input[type=submit] {			position:relative;font-family: 'YanoneKaffeesatzRegular'; 			font-size:24px; color: #7c7873;text-shadow:0 1px 0 #fff;			width:100%; text-align:center;opacity:0;			background:none;			cursor: pointer;			-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; 			-webkit-transition: opacity .6s ease-in-out 0s;			-moz-transition: opacity .6s ease-in-out 0s;			-o-transition: opacity .6s ease-in-out 0s;			transition: opacity .6s ease-in-out 0s;		}		#form_wrap:hover input[type=submit] {z-index:1;opacity:1;			-webkit-transition: opacity .5s ease-in-out 1.3s;			-moz-transition: opacity .5s ease-in-out 1.3s;			-o-transition: opacity .5s ease-in-out 1.3s;			transition: opacity .5s ease-in-out 1.3s;}			#form_wrap:hover input:hover[type=submit] {color:#435c70;}
登录后复制

  

 

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号