css3的复杂动画转成jquery调用怎么写
问题描述
@-webkit-keyframes bounceInRight { 0%, 100%, 60%, 75%, 90% {-webkit-animation-timing-function: cubic-bezier(0.215, .61, .355, 1);animation-timing-function: cubic-bezier(0.215, .61, .355, 1) } 0% {opacity: 0;-webkit-transform: translate3d(3000px, 0, 0);transform: translate3d(3000px, 0, 0) } 60% {opacity: 1;-webkit-transform: translate3d(-25px, 0, 0);transform: translate3d(-25px, 0, 0) } 75% {-webkit-transform: translate3d(10px, 0, 0);transform: translate3d(10px, 0, 0) } 90% {-webkit-transform: translate3d(-5px, 0, 0);transform: translate3d(-5px, 0, 0) } 100% {-webkit-transform: none;transform: none }}
.animatedtemo { -webkit-animation-name:bounceInRight; -webkit-animation-duration: 2s; animation-duration:2s; -webkit-animation-fill-mode: backwards; animation-fill-mode: backwards}
问题解答
回答1:-webkit-animation-name:bounceInRight;
这个单独那出来做一个样式类jquery只用为这个元素添加这个类就可以执行动画了
相关文章:
1. mysql sum去除重复2. 老师无限级分类有点难哟 不好理解3. javascript - swiper.js嵌套了swiper 初始设置不能向下一个滑动 结束后重新初始4. 为什么span的color非要内联样式才起作用?5. 提示内部服务错误什么问题6. python - Django ManyToManyField 字段数据在 admin后台 显示不正确,这是怎么回事?7. 请问没有对以太网通信进行封装的python库?8. python - pysciter 如何配置运行环境?9. python - 如何修改twisted自带的日志输出格式?10. php由5.3升级到5.6后,登录网站,返回的是php代码,不是登录界面,各位大神有知道的吗?

网公网安备