当前位置: 首页 > 图文教程 > 网络编程 > Javascript > jQuery animate效果演示

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 jQuery animate效果演示


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-12   浏览: 483 ::
收藏到网摘: n/a

一个简单的animate函数尝试, 这个效果在web应用中非常的实用,提供大家参考! animate(params[,duration[,easing[,callback]]])
用于创建自定义动画的函数。<br />
这个函数的关键在于指定动画形式及结果样式属性对象。这个对象中每个属性都表示一个可以变化的样式属性(如“height”、“top”或“opacity”)。
注意:所有指定的属性必须用骆驼形式,比如用marginLeft代替margin-left.
而每个属性的值表示这个样式属性到多少时动画结束。如果是一个数值,样式属性就会从当前的值渐变到指定的值。如果使用的是“hide”、“show”或“toggle”这样的字符串值,则会为该属性调用默认的动画形式。

运行以后,刷新下,主要远程js文件。

点击运行可以看到效果:
[Ctrl+A 全选 提示:你可先修改部分代码,再按运行]