CSS3 过渡特性创建信封效果的联系表单
最近给大家分享 CSS3 效果比较多,都是充分运用了 CSS3 来实现的。通过 CSS3 的新特性,我们创作出好的交互和效果的可能性大大增加。这篇文章中,我想与大家分享使用 CSS3 过渡特性实现的信封效果的联系表单。
CSS3 代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | #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;} |
您可能感兴趣的相关文章
作者:山边小溪
主站:yyyweb.com 记住啦:)
欢迎任何形式的转载,但请务必注明出处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
2013-11-10 使用 PSD Validator 在线校验 PSD 文件的质量
2011-11-10 45佳优秀的 Photoshop 网页设计布局教程
2011-11-10 15个漂亮的国外Flash网站模板下载
2009-11-10 IE8面向Web开发人员的功能改进