|
属性
|
描述
|
|
target
|
指定页面上将要应用该动画的元素的id
|
|
property
|
指定该动画将应用到页面元素中的哪个属性上
|
|
startValue
|
指定该动画将改变的值范围的开始值
|
|
endValue
|
指定该动画将改变的值范围的结束值
|
|
unit
|
指定该动画将改变的属性的单位。例如像素单位使用px,百分比单位使用%
|
|
duration
|
指定该动画将运行的时间长度,单位为秒
|
|
fps
|
获取或设置该动画的fps属性。默认值为25
|
|
isActive
|
获取一个布尔值,代表该动画是否已经开始运行
|
|
isPlaying
|
获取一个布尔值,代表该动画是否正在运行
|
|
percentComplete
|
获取一上0到100的数字,代表该动画目前完成运行的百分比
|
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<components>
<image id="i">
<behaviors>
<LayoutBehavior id="Label1Style" />
</behaviors>
</image>
<lengthAnimation id="lani"
target="Label1Style" property="width"
startValue="100" endValue="480" fps='25'
duration="5" >
</lengthAnimation>
<button id="startButton">
<click>
<InvokeMethodAction target="lani" method="play" />
</click>
</button>
</components>
</page>
</script>
| 第1页: 简介 | 第2页: 网页动画概述 |
| 第3页: 创建淡入/淡出动画效果 | 第4页: 创建长度动画效果 |
| 第5页: 创建数字动画效果 | 第6页: 创建离散动画效果 |
| 第7页: 创建高级复合动画效果 | 第8页: 小结 |