HTML字母掉落游戏,HTML5 文本逐字母掉落入场动效

CSS

语言:

CSSSCSS

确定

body {

font-family: 'Montserrat';

background: #d54040;

}

.container {

text-align: center;

width: 400px;

height: 320px;

position: absolute;

top: 40%;

left: 50%;

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

}

.fade-container {

text-align: center;

background: #fe9494;

width: 400px;

height: 300px;

position: relative;

transition: background 0.15s ease-in-out;

}

.fade-container:hover {

cursor: pointer;

}

.fade {

top: 50%;

left: 50%;

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

position: absolute;

text-transform: uppercase;

font-size: 2.5em;

color: #d54040;

text-align: left;

width: 260px;

}

.bounceInDown {

opacity: 0;

-webkit-animation: bounceInDown 1s;

animation: bounceInDown 1s;

-webkit-animation-fill-mode: forwards;

}

.fadeInDown {

opacity: 0;

-webkit-animation: fadeInDown 1s;

animation: fadeInDown 1s;

-webkit-animation-fill-mode: forwards;

}

@-webkit-keyframes fadeInDown {

0% {

opacity: 0;

-webkit-transform: translate3d(0, -100%, 0);

transform: translate3d(0, -100%, 0);

}

100% {

opacity: 1;

-webkit-transform: none;

transform: none;

}

}

@keyframes fadeInDown {

0% {

opacity: 0;

-webkit-transform: translate3d(0, -100%, 0);

transform: translate3d(0, -100%, 0);

}

100% {

opacity: 1;

-webkit-transform: none;

transform: none;

}

}

@-webkit-keyframes bounceInDown {

0%, 60%, 75%, 90%, 100% {

-webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);

transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);

}

0% {

opacity: 0;

-webkit-transform: translate3d(0, -3000px, 0);

transform: translate3d(0, -3000px, 0);

}

60% {

opacity: 1;

-webkit-transform: translate3d(0, 25px, 0);

transform: translate3d(0, 25px, 0);

}

75% {

opacity: 1;

-webkit-transform: translate3d(0, -10px, 0);

transform: translate3d(0, -10px, 0);

}

90% {

opacity: 1;

-webkit-transform: translate3d(0, 5px, 0);

transform: translate3d(0, 5px, 0);

}

100% {

opacity: 1;

-webkit-transform: none;

transform: none;

}

}

.button {

opacity: 0.3;

display: inline-block;

margin: 12px 5px;

border: solid 1px #f26767;

border-radius: 10px;

padding: 7px 10px;

font-size: 0.8em;

font-family: 'Lato', sans-serif;

font-weight: 100;

color: #fff;

text-decoration: none;

}

.button,

select {

opacity: 0.3;

transition: opacity 0.15s ease-in-out;

}

.button:hover,

select:hover {

opacity: 1;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值