我们在工作中会遇到很多特效,很多情况下因为我们不是专业的美工所以就很难想到一些动画是怎样设计的,在这里小编给大家介绍一个网站https://daneden.github.io/animate.css/\r\n 你在这里会看到很多的特效,\r\n \r\n 点如进入github中,你就能看到下图\r\n \r\n 然后打开里面就有动画的代码\r\n @-webkit-keyframes bo
我们在工作中会遇到很多特效,很多情况下因为我们不是专业的美工所以就很难想到一些动画是怎样设计的,在这里小编给大家介绍一个网站https://daneden.github.io/animate.css/
你在这里会看到很多的特效,
点如进入github中,你就能看到下图
然后打开里面就有动画的代码
@-webkit-keyframes bounce {
from, 20%, 53%, 80%, to {
-webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
40%, 43% {
-webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
-webkit-transform: translate3d(0, -30px, 0);
transform: translate3d(0, -30px, 0);
}
70% {
-webkit-animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
-webkit-transform: translate3d(0, -15px, 0);
transform: translate3d(0, -15px, 0);
}
90% {
-webkit-transform: translate3d(0,-4px,0);
transform: translate3d(0,-4px,0);
}
}
然后在你的元素中使用animation:bounce 2s linear infinite,调用就可以了!
本站主要用于,日常笔记的记录,和生活日志。本站不保证所有内容信息可靠!(大多数文章属于搬运!)如有版权问题!请联系我立即删除“abcdsjx@126.com”
QQ: 1164453243
邮箱: abcdsjx@126.com