加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex 仿苹果的动画

发布时间:2020-12-15 01:00:31 所属栏目:百科 来源:网络整理
导读:s:Sequence target="{stateLocationSearch}" id="tomeff"s:Parallelmx:Zoom target="{stateLocationSearch}" zoomWidthFrom="1" originY="{wTemplate.height/2}" originX="{wTemplate.width/2}" zoomWidthTo="2" zoomHeightFrom="1" zoomHeightTo="2" durati
<s:Sequence target="{stateLocationSearch}" id="tomeff">
			<s:Parallel>
				<mx:Zoom target="{stateLocationSearch}" zoomWidthFrom="1"   
						 originY="{wTemplate.height/2}" originX="{wTemplate.width/2}"
						 zoomWidthTo="2" zoomHeightFrom="1" zoomHeightTo="2" duration="200">
				</mx:Zoom>
				<mx:Fade target="{stateLocationSearch}" alphaFrom="1" alphaTo="0" 
						 duration="200" />
			</s:Parallel>
			<s:Parallel>
				<mx:Zoom target="{stateLocationSearch}" zoomWidthFrom="0.5"  
						 originY="{wTemplate.height/2}" originX="{wTemplate.width/2}"
						 zoomWidthTo="1" zoomHeightFrom="0.5" zoomHeightTo="1" duration="200">
				</mx:Zoom>
				<mx:Fade target="{stateLocationSearch}" alphaFrom="0" alphaTo="1" 
						 duration="200" />
			</s:Parallel>
		</s:Sequence>
原理很简单,创建两个动画,一个在淡出的时候同时放大;一个在淡入的时候同时放大,两个动画顺序执行,就仿真出来啦.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读