Code Monkey home page Code Monkey logo

hhtransition's Introduction

主流转场动画

2019/07/19 push增加卡片效果
121212.gif


1.gif2.gif

3.gif4.gif

5.gif6.gif

7.gif

2018-05-17增加CATransition动画

transitionCube.giftransitionCurl.gif

transitionOgl.giftransitionRipple.gif

transitionSuck.gif

使用方法

1、导入头文件UIViewController+HHTransition

2、调用如下方法,基本只需要一句话,无侵入,API简单易用

        case 0:{
            CircleViewController *circleVC = [CircleViewController new];
            circleVC.isNeedShow = YES;
            [self hh_presentCircleVC:circleVC point:_touchPoint completion:nil];
        }
            break;
        case 1://内部只做背部控制器动画,前台动画自己控制
            [self hh_presentVC:[BackScaleViewController new] type:AnimationStyleBackScale completion:nil];
            break;
        case 2:{
            CircleViewController *circleVC = [CircleViewController new];
            circleVC.isNeedShow = YES;
            [self hh_presentVC:circleVC type:AnimationStyleErect completion:nil];
        }
            break;
        case 3:{//需要重写 hh_transitionAnimationView
            CircleViewController *circleVC = [CircleViewController new];
            circleVC.isNeedShow = YES;
            [self hh_presentVC:circleVC type:AnimationStyleTilted completion:nil];
        }
            break;
        case 4:{//需要重写 hh_transitionAnimationView
            InterScaleViewController *interScale = [InterScaleViewController new];
            interScale.imageName = [UIImage imageNamed:@"1.jpg"];
            [self.navigationController hh_pushViewController:interScale style:AnimationStyleScale];
        }
            break;
        case 5:{
            InterScaleViewController *interScale = [InterScaleViewController new];
            interScale.imageName = [UIImage imageNamed:@"2.jpg"];
            [self.navigationController hh_pushViewController:interScale style:AnimationStyleScale];
        }
            break;
        case 6:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleErect];
            break;
        case 7:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleTilted];
            break;
        case 8:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleBack];
            break;
        case 9:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleCube];
            break;
        case 10:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleSuckEffect];
            break;
        case 11:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleOglFlip];
            break;
        case 12:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleRippleEffect];
            break;
        case 13:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStylePageCurl];
            break;
        case 14:
            [self.navigationController hh_pushViewController:[CircleViewController new] style:AnimationStyleCameralIrisHollowOpen];
            break;
        case 15:
            [self.navigationController hh_pushViewController:[TopBackViewController new] style:AnimationStyleTopBack];
            break;

支持cocoapod

target 'MyApp' do
  pod 'HHTransition', '~> 2.0.0'
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.