ractive+css实现表单美化提交发送邮件信封动画效果代码
代码语言:html
所属分类:表单美化
代码描述:ractive+css实现表单美化提交发送邮件信封动画效果代码
代码标签: ractive css 表单 美化 提交 发送 邮件 信封 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background:linear-gradient(45deg,#bb1881,#f88b50);
font-family:sans-serif
}
.contact-wrapper {
position:absolute;
top:50%;
transform:translateY(-50%);
width:100%
}
.flip-card {
border-radius:.5em;
position:fixed;
top:1em;
left:1em;
width:5em;
padding:.5em;
border:.1em solid #fff;
color:#fff;
text-align:center;
cursor:pointer;
z-index:9
}
.envelope {
position:relative;
display:block;
width:30em;
height:35em;
margin:0 auto
}
.envelope.active .content {
padding:15em 2em 2em
}
.envelope.active .paper.front,.envelope.active .paper.back {
animation-duration:1.5s;
animation-direction:normal;
animation-timing-function:ease-in-out;
animation-fill-mode:forwards
}
.envelope.active .paper.front {
animation-name:envelope-front
}
.envelope.active .paper.back {
animation-name:envelope-back
}
.envelope.active .paper.back:before {
animation-duration:.5s;
animation-direction:normal;
animation-timing-function:ease-in-out;
animation-fill-mode:forwards;
animation-delay:1.25s;
animation-name:envelope-back-before
}
.envelope.active .bottom-wrapper {
transform:rotateX(180deg)
}
.envelope.active .bottom-wrapper:after {
z-index:0;
opacity:1
}
.envelope .content {
padding:2em;
box-sizing:border-box;
position:relative;
z-index:9;
transition:all .5s ease-in-out;
transition-delay:1s
}
.envelope .top-wrapper,.envelope .bottom-wrapper {
box-sizing:border-box;
background:#03a9f5;
color:#fff
}
.envelope .top-wrapper {
padding:2em 2em 0;
border-top-left-radius:.5em;
border-top-right-radius:.5em
}
.envelope .bottom-wrapper {
padding:0 2em 2em;
border-bottom-left-radius:.5em;
border-bottom-right-radius:.5em;
transition:all .5s ease-in-out;
transform-origin:top;
transform-style:preserve-3d;
position:relative;
overflow:hidden;
margin-top:-1px
}
.envelope .bottom-wrapper:after {
position:absolute;
content:'';
display:block;
opacity:0;
background:#03a9f5;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1
}
.envelope form label {
display:block;
padding-bottom:.5em
}
.envelope form input,.envelope form textarea {
width:100%;
box-shadow:0;
background:transparent;
color:#fff
}
.envelope form input {
border-width:0 0 .1em;
border-color:#fff;
border-style:solid
}
.envelope form textarea {
border:.1em solid #fff;
border-radius:.25em
}
.envelope form .submit-card {
background:#fff;
color:#222;
text.........完整代码请登录后点击上方下载按钮下载查看
网友评论0