动画的html邮件,HTML5 CSS3邮件开封动画

CSS

语言:

CSSSCSS

确定

body {

background: #323641;

}

.image {

position: absolute;

top: 50%;

left: 50%;

width: 200px;

height: 200px;

-webkit-transform: translate(-50%, -50%);

-moz-transform: translate(-50%, -50%);

transform: translate(-50%, -50%);

cursor: pointer;

}

.animated-mail {

position: absolute;

height: 150px;

width: 200px;

-webkit-transition: .4s;

-moz-transition: .4s;

transition: .4s;

}

.animated-mail .body {

position: absolute;

bottom: 0;

width: 0;

height: 0;

border-style: solid;

border-width: 0 0 100px 200px;

border-color: transparent transparent #e95f55 transparent;

z-index: 2;

}

.animated-mail .top-fold {

position: absolute;

top: 50px;

width: 0;

height: 0;

border-style: solid;

border-width: 50px 100px 0 100px;

-webkit-transform-origin: 50% 0%;

-webkit-transition: transform .4s .4s, z-index .2s .4s;

-moz-transform-origin: 50% 0%;

-moz-transition: transform .4s .4s, z-index .2s .4s;

transform-origin: 50% 0%;

transition: transform .4s .4s, z-index .2s .4s;

border-color: #cf4a43 transparent transparent transparent;

z-index: 2;

}

.animated-mail .back-fold {

position: absolute;

bottom: 0;

width: 200px;

height: 100px;

background: #cf4a43;

z-index: 0;

}

.animated-mail .left-fold {

position: absolute;

bottom: 0;

width: 0;

height: 0;

border-style: solid;

border-width: 50px 0 50px 100px;

border-color: transparent transparent transparent #e15349;

z-index: 2;

}

.animated-mail .letter {

left: 20px;

bottom: 0px;

position: absolute;

width: 160px;

height: 60px;

background: white;

z-index: 1;

overflow: hidden;

-webkit-transition: .4s .2s;

-moz-transition: .4s .2s;

transition: .4s .2s;

}

.animated-mail .letter .letter-border {

height: 10px;

width: 100%;

background: repeating-linear-gradient(-45deg, #cb5a5e, #cb5a5e 8px, transparent 8px, transparent 18px);

}

.animated-mail .letter .letter-title {

margin-top: 10px;

margin-left: 5px;

height: 10px;

width: 40%;

background: #cb5a5e;

}

.animated-mail .letter .letter-context {

margin-top: 10px;

margin-left: 5px;

height: 10px;

width: 20%;

background: #cb5a5e;

}

.animated-mail .letter .letter-stamp {

margin-top: 30px;

margin-left: 120px;

border-radius: 100%;

height: 30px;

width: 30px;

background: #cb5a5e;

opacity: 0.3;

}

.shadow {

position: absolute;

top: 200px;

left: 50%;

width: 400px;

height: 30px;

transition: .4s;

transform: translateX(-50%);

-webkit-transition: .4s;

-webkit-transform: translateX(-50%);

-moz-transition: .4s;

-moz-transform: translateX(-50%);

border-radius: 100%;

background: radial-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));

}

.image:hover .animated-mail {

transform: translateY(50px);

-webkit-transform: translateY(50px);

-moz-transform: translateY(50px);

}

.image:hover .animated-mail .top-fold {

transition: transform .4s, z-index .2s;

transform: rotateX(180deg);

-webkit-transition: transform .4s, z-index .2s;

-webkit-transform: rotateX(180deg);

-moz-transition: transform .4s, z-index .2s;

-moz-transform: rotateX(180deg);

z-index: 0;

}

.image:hover .animated-mail .letter {

height: 180px;

}

.image:hover .shadow {

width: 250px;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值