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. web - nginx location 搜索算法问题!?2. 在windows下安装docker Toolbox 启动Docker Quickstart Terminal 失败!3. docker-machine添加一个已有的docker主机问题4. python - type="datetime-local" 的 input 如何通过 django form.is_valid() 校验5. docker安装后出现Cannot connect to the Docker daemon.6. docker - 如何修改运行中容器的配置7. docker - 各位电脑上有多少个容器啊?容器一多,自己都搞混了,咋办呢?8. 关于docker下的nginx压力测试9. Docker for Mac 创建的dnsmasq容器连不上/不工作的问题10. angular.js - angular内容过长展开收起效果

网公网安备