Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for full page transitions #2

Open
colinhumber opened this issue May 17, 2011 · 2 comments
Open

Allow for full page transitions #2

colinhumber opened this issue May 17, 2011 · 2 comments

Comments

@colinhumber
Copy link

Currently the sample project splits the page in half when going a page flip. Is it possible to change the animation to allow for the entire page to flip revealing the contents behind? Similar to when you open a hard cover book and the entire cover flips, not just half of it.

@mtabini
Copy link
Owner

mtabini commented May 29, 2011

It is possible—I just don't have the time to work on it. IIRC, the split turn in portrait occurs because a full page turn looked weird, but with a bit more work it can be made to look better.

@shakir1311
Copy link

Try to concentrate on these:

CGRect rect = self.bounds;
//rect.size.width /= 2;
rect.size.height /= 2;

............

[backgroundAnimationLayer addSublayer:topLayer];

rect.origin.y = rect.size.height; - this line

//self.nextView.frame = rect;



[self.layer addSublayer:backgroundAnimationLayer];

rect.origin.y = 0;

flipAnimationLayer = [CATransformLayer layer];
flipAnimationLayer.anchorPoint = CGPointMake(0.5, 1.0); - this one
flipAnimationLayer.frame = rect;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants