Transition question

Hi
i am trying to create a effect like when we open an aplication on windows 7, the aplication is on the bar and when we touch on the aplication to open it, it creates a effect like the image is little and will increase until the normal size of the image, and i am trying to create it. i have a image per exemple 100x100, but the image isnt visible and when i touch on a little button the image will appear and grow her size until her normal size.

what i should use to create this effect with corona?

Thanks
[import]uid: 26056 topic_id: 21136 reply_id: 321136[/import]

Assuming you’re image is called “object”

-- make the object really small. If its a 100x100 image, this will   
-- make it start as a 5x5 image.  
object.xScale = 0.05  
object.yScale = 0.05  
  
-- this will scale it back from its extra small size to its native  
-- over 1/2 a second.  
  
transition.to(object, {time=500, xScale=1.0, yScale=1.0})  

EDIT…
I forgot to add, that if you also want to move it, say from the bottom of the screen to say the top half of the screen, you might want this variant:

-- make the object really small. If its a 100x100 image, this will   
-- make it start as a 5x5 image.  
object.xScale = 0.05  
object.yScale = 0.05  
object.y = display.contentHeight - 3  
object.x = display.contentWidth / 2  
  
-- this will scale it back from its extra small size to its native  
-- over 1/2 a second.  
  
transition.to(object, {time=500, xScale=1.0, yScale=1.0, y=display.contentHeight / 2 - 100})  

[import]uid: 19626 topic_id: 21136 reply_id: 83668[/import]

Thank a lot for the help, is really what i was searching, so simple, thanks :slight_smile: [import]uid: 26056 topic_id: 21136 reply_id: 83738[/import]