jQuery 停止动画 stop()
来源:互联网 发布:linux ifconfig 找不到 编辑:程序博客网 时间:2024/06/05 05:47
stop():停止匹配的元素上当前运行的动画。
<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>stop demo</title> <style> div { position: absolute; background-color: #abc; left: 0px; top: 30px; width: 60px; height: 60px; margin: 5px; } </style> <script src="https://code.jquery.com/jquery-1.10.2.js"></script></head><body><button id="go">Go</button><button id="stop">STOP!</button><button id="back">Back</button><div class="block"></div><script>// Start animation$( "#go" ).click(function() { $( ".block" ).animate({ left: "+=100px" }, 2000 );});// Stop animation when button is clicked$( "#stop" ).click(function() { $( ".block" ).stop();});// Start animation in the opposite direction$( "#back" ).click(function() { $( ".block" ).animate({ left: "-=100px" }, 2000 );});</script></body></html>
阅读全文
0 0
- 【jQuery】stop( ) 停止动画
- Jquery----停止动画stop
- jQuery 停止动画 stop()
- jQuery中停止动画stop
- jquery stop()停止当前所有动画效果
- jQuery学习教程八: jQuery 停止动画stop
- jq stop(停止动画)
- jQuery动画animate停止方法stop使用介绍
- jquery 停止动画 stop的几种用法
- 【jQuery】调用stop()方法停止当前所有动画效果
- jquery 停止动画 stop的几种用法
- 转载:jQuery停止动画——stop()方法的使用
- jquery动画stop animate
- jQuery动画stop()用法
- jQuery动画效果2(animate移位效果/stop停止/delay延时效果)
- 【jQuery】jQuery 停止动画
- jQuery 停止动画
- jQuery 停止动画
- ubuntu wpasupplicant 连接无线网
- 用phpstudy正确配置阿里服务器 网站就是不能浏览原因
- 怎么解决电脑频繁死机?
- 工作新的开始
- 关于微信wx.previewImage图片没有正常显示的问题
- jQuery 停止动画 stop()
- HDU6070 Lazy Running (最短路)
- Hive生产脚本常用参数设置[合并小文件,压缩文件,动态分区,数据倾斜...]
- Git基本操作
- shell学习笔记
- 处理vue-cli 打包第三方库时语法报错 Unexpected token: name (idSeed)
- Eclipse 安装GWT环境
- linux学习笔记(18)
- 浅谈javaScript中的闭包