开发者

Ken Burns Effect on actionscript3

开发者 https://www.devze.com 2022-12-13 23:02 出处:网络
I want to develop a zooming effect like this gallery: http://www.monoslideshow.com/ Can anyone give me a hint? I\'m not sure about the math that开发者_开发百科 i have to do for getting something simil

I want to develop a zooming effect like this gallery: http://www.monoslideshow.com/ Can anyone give me a hint? I'm not sure about the math that开发者_开发百科 i have to do for getting something similar Thanks in advance


All that is really happening in that gallery is a Tween on multiple parameters. To replicate this effect, over a few seconds, increase scaleX and scaleY a small amount and choose a random direction in which to move the image (also a small amount such that you don't move the image out of view - move it only by as much canvas space you gain from scaling).

i.e.: 200x200 image, if you Tween to scale 1.05, you would be dealing with 10 extra pixels in either direction.

0

精彩评论

暂无评论...
验证码 换一张
取 消