加载中...
加载中...
css3 实现页面从左右两侧进入效果

css3 实现页面从左右两侧进入效果 原创

/***************css3 实现页面从左右两侧进入效果 start****************/
div{ /**0.5s是时间可设置多个**/     animation: bounceInLeft 0.5s 0.25s linear forwards;
}
@keyframes bounceInLeft {
from, 60%, 75%, 90%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}
0% {opacity: 0;transform: translate3d(-3000px, 0, 0);}
60% {opacity: 1;transform: translate3d(25px, 0, 0);}
75% {transform: translate3d(-10px, 0, 0);}
90% {transform: translate3d(5px, 0, 0);}
100% {opacity: 1;transform: none;}
}
@keyframes bounceInRight {
from, 60%, 75%, 90%, to {animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}
0% {opacity: 0;transform: translate3d(3000px, 0, 0);}
60% {opacity: 1;transform: translate3d(-25px, 0, 0);}
75% {transform: translate3d(10px, 0, 0);}
90% {transform: translate3d(-5px, 0, 0);}
100% {opacity: 1;transform: none;}
}
/***************css3 实现页面从左右两侧进入效果 end****************/

参考:https://blog.csdn.net/a419419/article/details/79151256


没有更多推荐了 [去首页]
image
文章
376
原创
293
转载
83
翻译
0
访问量
183398
喜欢
73
粉丝
5
码龄
7年
资源
3

文章目录

加载中...
0
1