Implementation of the book turning effect and the book turning Effect
:
Code:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
//Initialize background
[self initBackgroundView];
}
#pragma -mark -functions
-(void)initBackgroundView
{
Self. Title = @ "the realization of the effect of flipping books";
self.view.backgroundColor=[UIColor redColor];
//upButton
UIButton *upButton = [UIButton buttonWithType:UIButtonTypeCustom];
upButton.frame = CGRectMake(20, 420, 50, 26);
upButton.backgroundColor=[UIColor blueColor];
[upButton setTitle:@"up" forState:UIControlStateNormal];
[upButton addTarget:self action:@selector(doClickUpButton) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:upButton];
//downButton
UIButton *downButton = [UIButton buttonWithType:UIButtonTypeCustom];
downButton.frame = CGRectMake(250, 420, 50, 26);
downButton.backgroundColor=[UIColor blueColor];
[downButton setTitle:@"down" forState:UIControlStateNormal];
[downButton addTarget:self action:@selector(doClickDownButton) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:downButton];
}
#pragma -mark -doClickAction
-(void)doClickUpButton
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.7];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.view cache:YES];
[UIView commitAnimations];
}
-(void)doClickDownButton
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.7];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIView commitAnimations];
}
How to Implement the book turning effect in the PPT
PPT book turning Effect
1. Create a blank PowerPoint document.
2. Create two pages:
1. Click the small triangle on the right of "custom image", select the "angle-shaped" image under "basic image", and draw a page-like image in PowerPoint, the width should be less than half the width of the document.
2. Press and hold the "ctrl" key on the drive, pull (copy and paste) the same image, place it on the left side of the first image, and click the small triangle on the right of the "Drawing, select "rotate or flip"-"Horizontal flip ".
3. Select the image on the right and double-click it twice (double-click) choose "color and line"> "Black Triangle"> "fill effect"> "image"> "insert"> "OK". In the same way, insert an image to the left.
3. Add an animation:
1. Select the image on the right and add a Custom Animation (click "Slide Show"> "Custom Animation"). In the "add effect" dialog box, select "exit"> "cascade. Select "to left ".
2. Select the image on the left and add an animation. Select "go"> "stretch" in the add effect ". Select "after" for "start" and "direction" for "from right ". Then, select the image on the left and give it another effect. "Enter the --- gradient," Start "and select" before ".
At this time, you can show the slides and test whether the results have the effect of turning books. If it is correct, let's make a Multi-page flip.
4. Create a multi-page book flip
1. Select the image on the right. Copy and paste one. Double-click this image and select "color and line"> "Black Triangle of color"> "fill effect"> "image"> "insert"> "OK. Click again and select "stacked order-placed at the bottom layer.
2. Select the image on the left. Copy and paste one, double-click this one, and select "color and line"> "Black Triangle of color"> "fill effect"> "image"> "insert"> "OK.
3. Select the right image. Copy and paste one. Double-click this image and select "color and line"> "Black Triangle of color"> "fill effect"> "image"> "insert"> "OK. Click again and select "stacked order-placed at the bottom layer.
4. Select the image on the left. Copy and paste one, double-click this one, and select "color and line"> "Black Triangle of color"> "fill effect"> "image"> "insert"> "OK.
(In this Order, the class pushes the image into it until the picture you want to insert is complete .)
5. Align the pages on the left and right sides using the alignment and distribution functions in the drawing.
Test the result and see if the book has been successfully flipped? Happy.
For the sake of beauty, you can fill in different pictures for each page or add different text content. Set the background to your favorite color. Make your book look more beautiful and beautiful.
How to Implement the book turning effect in the PPT
When presenting images in PowerPoint, in order to make the lecture presentation beautiful and gorgeous, you can't help but use a variety of animation effects to add color to the lecture. Many people will envy the book-turning effect in Flash, here we will introduce a method that can also be used in PowerPoint.
The method to achieve the effect of turning books.
Step 1: Create a blank slide, insert the desired image, such as the cover, and place it in the appropriate position on the right. Select an image to set its animation effect: "slide show> Custom Animation> Add effect", and select "cascade" from "exit ", select "direction" as "to left" (1 ). Click the drop-down menu on the right of the effect style, select "Timing", select "Trigger" in the pop-up dialog box, and select "Start effect when you click the following objects ", select "cover" for the image (2 ).
Step 2: Insert a new image to the left of the cover, and set "animation effect" after selection. On the add effect page, select "stretch" in "enter ", set "start" to "after" and "direction" to "from right", and sort the playback order after the image "cover" (3 ).
After completing the preceding two steps, press F5 to view the playback effect.
If you want to insert more images, you can repeat steps 1 and 2. Note that the third picture to be inserted must be placed under the first one, the fifth is under the third, and so on.