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. 在应用配置文件 app.php 中找不到’route_check_cache’配置项2. html按键开关如何提交我想需要的值到数据库3. gvim - 谁有vim里CSS的Indent文件, 能缩进@media里面的4. dockerfile - 我用docker build的时候出现下边问题 麻烦帮我看一下5. HTML 5输入框只能输入汉字、字母、数字、标点符号?正则如何写?6. 跟着课件一模一样的操作使用tp6,出现了错误7. PHP类属性声明?8. javascript - 请教如何获取百度贴吧新增的两个加密参数9. html - 微信浏览器h5<video>标签问题10. java - 安卓接入微信登录,onCreate不会执行
