Blind down animation on CALayer using a mask?

Another thing to try. Check out CALayer s contentRect property. It acts as a 'viewport' over the layer.To animate it start contentRect with a shrunk down value then set it to go full size.

Core Animation takes care of animating it for you.

Another thing to try. Check out CALayer's contentRect property. It acts as a 'viewport' over the layer.To animate it start contentRect with a shrunk down value then set it to go full size.

Core Animation takes care of animating it for you. Not sure if it's exactly the effect you're looking for, but there are a few things to keep in mind: contentsRect is in 'unit coordinates' meaning the values are floats between 0.0 and 1.0 (with 0.0 meaning show nothing and 1.0 means show everything). Layer coordinates are flipped from UIView coordinates.

So 0.0, 0.0, is bottom left and values go up and to the right. You'll have to make some adjustments to get the right effect. Depending on what's inside the blinds, you may have to set masksToBounds=YES.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions