CSS3 Transition Properties Contact form for creating an envelope effect

Source: Internet
Author: User
Tags contact form

Recently to everyone to share CSS3 effect is more, are full use of CSS3 to achieve. With the new features of CSS3 , we have greatly increased the likelihood of creating good interactions and effects. In this article, I want to share with you a contact form that uses the CSS3 Transition feature to implement the envelope effect.

Effects Demo Plugin Download

CSS3 Code:

#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: "";p osition:absolute;bottom:128px;left:0px;background:url (' images/before.png '); width : 530px;height:316px;} #form_wrap: After {content: "";p osition: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 EAs E-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;}

  

Related articles that may be of interest to you
    • Web development in a very practical 10 effects "source Download"
    • Carefully selected excellent jquery Ajax page plug-ins and tutorials
    • 12 Amazing ideas for 404 error page Design
    • Let the website Move! 12 Excellent jQuery animation plugins
    • Stunning 8 x HTML5 & JavaScript Effects

This article links: Learn to use CSS3 to make a beautiful set of animation button effect

Compilation Source: Dream Sky focus on front-end development technology sharing web design resources

CSS3 Transition Properties Contact form for creating an envelope effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.