Need "suck into close button" animation

22 weergaven
Naar het eerste ongelezen bericht

Chris Adamson

ongelezen,
6 sep 2010, 08:11:3506-09-2010
aan cocoa-unbound
Has anyone seen source for or a blog description of a "suck into close
button" animation like Dashboard widgets? Off the top of my head, it
seems like just setting the bounds to {(0,0) 0x0} and animating is
just going to perform a scale, but I can't quite envision what the
keyframes or control points would be for this animation.

Thanks.

--Chris

Michael Tyson

ongelezen,
6 sep 2010, 15:29:0306-09-2010
aan cocoa-...@googlegroups.com
Hmm, in the absence of any other more helpful replies thus far, my two bob: Unless this is an out-of-the-box transition type, I can't imagine implementing this any other way than using GL: Copying the view as a texture onto a grid and deforming it appropriately.

You won't get the kind of control you need for a 'suck' animation with a standard CA transform, unfortunately, as far as I know!

Best of luck,
Michael

Kevin Ballard

ongelezen,
6 sep 2010, 15:50:3506-09-2010
aan cocoa-...@googlegroups.com
What platform are you targeting? If it's OS X, then there's some private CGS functions you can use to do the transition. If I recall correctly, there's one specifically for the genie suck animation, though you can use CGSSetWindowWarp() To do arbitrary animations as well. If it's iOS then as Michael said, you're going to have to use OpenGL.

-Kevin Ballard
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten