Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:10:24+00:00 2026-06-12T17:10:24+00:00

I have a seque animation that I am trying to do. It has two

  • 0

I have a seque animation that I am trying to do. It has two steps.

Step 1: I take the layer and change the perspective a little so it looks like the layer’s top is moving back. sourceViewController.view.layer.transform CATransform3DMakePerspective(0, 0.003, CATransform3DIdentity);

Step 2: I change the scale to 80% and put the perspective back to normal. This giving it like a slight swing zoom out animation.

sourceViewController.view.layer.transform = CATransform3DScale(sourceViewController.view.layer.transform, 0.8, 0.8, 1);

sourceViewController.view.layer.transform CATransform3DMakePerspective(0, 0, sourceViewController.view.layer.transform);

My biggest issue is this. I can’t do 2 animations on the layer at the same time. It automatically starts at the end of the first transform instead of doing both at the same time. That could be fixed by concat but since I want step 1 top happen, then the layer saves it state so step 2 can happen, I can’t concat all three.

How do I go about creating a multistep animation that has 1 or more transforms on the same layer? Like I said in the example below it will skip step 1 and start as if the step was already done. I know semi confusing to explain. Here’s my animation.

[UIView animateWithDuration:2.0
                        delay:0.0
                        options:UIViewAnimationCurveEaseIn 
                     animations:^{
                         sourceViewController.view.layer.transform = CATransform3DMakePerspective(0, 0.003, sourceViewController.view.layer.transform);
                         [UIView animateWithDuration:1.0
                                               delay:1.0
                                             options:UIViewAnimationCurveEaseOut 
                                          animations:^{
                                              sourceViewController.view.layer.transform = CATransform3DConcat(CATransform3DScale(sourceViewController.view.layer.transform, 0.8, 0.8, 1),CATransform3DMakePerspective(0, 0, sourceViewController.view.layer.transform));

                                          } 
                                          completion:nil];
                     } 
                     completion:^(BOOL finished){
                     }];

I’ve googled and tried everything. There has to be a way to do successive animations on the same layer that start at the place where the last elft off. I’m passing in the layer instead of CATransform3DIdentity because I read that Identity reverts back to the starting state instead of where the layer was transformed to.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:10:25+00:00Added an answer on June 12, 2026 at 5:10 pm

    You don’t want to start the second animation until the first animation is complete. That’s what the completion block is for.

    [UIView animateWithDuration:2 delay:0 options:UIViewAnimationCurveEaseIn animations:^{
        sourceViewController.view.layer.transform = CATransform3DMakePerspective(
            0, 0.003, sourceViewController.view.layer.transform);
    } completion:^(BOOL finished) {
        [UIView animateWithDuration:1 delay:0 options:UIViewAnimationCurveEaseOut animations:^{
            sourceViewController.view.layer.transform = CATransform3DConcat(
                CATransform3DScale(sourceViewController.view.layer.transform, 0.8, 0.8, 1),
                CATransform3DMakePerspective(0, 0, sourceViewController.view.layer.transform));
        } completion:nil];
    }];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that has two viewcontrollers Viewcontroller and OptionsViewController. Viewcontroller is the
I have a main ViewController that has two buttons that each segue to their
I have a UIViewController (firstViewController) which has a button that 'segue's to another UIViewController
I have two UIViewControllers that are contained in a navigatoin view controller and both
I am trying to create an object that can have clickable text within it.
I have a private Rails app that I'm trying to install locally. It's currently
I have a question that has me stumped, maybe you can help. I have
I have an object that I want to segue between two MVC's. Do the
I have an application that looks like this; Navigation Controller->Table View Controller->Navigation Controller2->Table View
I have a segue (called ToSettingsSegue ) that pushes a custom view controller (

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.