All Projects → Sa74 → STCubeTransition

Sa74 / STCubeTransition

Licence: MIT license
A custom view transition that provides transition between 2 different views with 3D cube rotate effect.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to STCubeTransition

XYFSnowAnimation
A category of NSTimer for showing 3D Fluttered animation for iOS, which is used very simply. Lightweight CALayer animation, core animation, 3D transform, performance safety. iOS 3D三维飘落下雪落花动画,轻量级CALayer图层动画,核心动画,3D形变,性能安全,定时器NSTimer分类,直接使用,很简单
Stars: ✭ 15 (-6.25%)
Mutual labels:  podfile
preact-transitioning
Preact components for easily implementing basic CSS animations and transitions
Stars: ✭ 35 (+118.75%)
Mutual labels:  transition
Inspire
主题式Swift开发工具包,包含布局、颜色、字体等。
Stars: ✭ 16 (+0%)
Mutual labels:  podfile
Xhlaunchad
🔥The screen opening advertising solutions - 开屏广告、启动广告解决方案-支持静态/动态图片广告,mp4视频广告,全屏/半屏广告、兼容iPhone/iPad. 【 Github下载不了/下载慢 可以访问国内下载地址: https://gitee.com/CoderZhuXH/XHLaunchAd】
Stars: ✭ 3,578 (+22262.5%)
Mutual labels:  podfile
minimal-player
This is a minimal, clean audio/music/mp3 player with spinning cover images, built with jQuery, TweenMax.js and SVG images.
Stars: ✭ 48 (+200%)
Mutual labels:  transition
react-transition-state
Zero dependency React transition state machine.
Stars: ✭ 239 (+1393.75%)
Mutual labels:  transition
Fluidtransitions
Fluid Transitions for React Navigation
Stars: ✭ 2,814 (+17487.5%)
Mutual labels:  transition
My Android Garage
A quick reference guide for Android development.
Stars: ✭ 66 (+312.5%)
Mutual labels:  transition
use-spring
Hooke's law hook
Stars: ✭ 53 (+231.25%)
Mutual labels:  transition
UIViewAnimationsHandbook
This project takes up all the available UIView animations in Swift4. Each type animation added with an example and expected result in the form of GIF. A glimpse at README would give you a better idea. Do give a star if you like the work.
Stars: ✭ 43 (+168.75%)
Mutual labels:  uiviewanimation
Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+26212.5%)
Mutual labels:  podfile
jazzer
Add some visual smooth jazz to your page
Stars: ✭ 19 (+18.75%)
Mutual labels:  transition
SPLarkController
Custom transition between controllers. Settings controller for your iOS app.
Stars: ✭ 967 (+5943.75%)
Mutual labels:  transition
poddotify
A command line tool: from a Podfile.lock to an image.
Stars: ✭ 79 (+393.75%)
Mutual labels:  podfile
NoticeBoard
请使用功能更强大的ProHUD: https://github.com/xaoxuu/ProHUD
Stars: ✭ 15 (-6.25%)
Mutual labels:  podfile
Editly
Slick, declarative command line video editing & API
Stars: ✭ 3,162 (+19662.5%)
Mutual labels:  transition
LollipopTransition
关于共享元素与transition框架的学习
Stars: ✭ 30 (+87.5%)
Mutual labels:  transition
onscroll-effect
A tiny JavaScript library to enable CSS animations when user scrolls.
Stars: ✭ 35 (+118.75%)
Mutual labels:  transition
MTTransitions
iOS Transitions ports from GL-Transitions.
Stars: ✭ 178 (+1012.5%)
Mutual labels:  transition
YRNavigationBarPure
Global navigation bar pure transition
Stars: ✭ 69 (+331.25%)
Mutual labels:  transition

STCubeTransition

A custom view transition that provides transition between 2 different views with 3D cube rotate effect.

CI Status Version License Platform

Screenshot

STCubeTransition

Installation

Cocoapods

STCubeTransition is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'STCubeTransition'

You want to add pod 'STCubeTransition', '~> 1.4' similar to the following to your Podfile:

target 'MyApp' do
  pod 'STCubeTransition', '~> 1.4'
  use_frameworks!
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Alternatively to give it a test run, run the command:

pod try STCubeTransition

Manual

  • Drag and drop STCubeTransition.swift class into your project in Xcode.
  • Make sure you select all the targets required.

Usage

It is much simpler than performing an UIView animation.

If you use Cocoapods, First of all, import the framework:

import STCubeTransition

Then, init CubeTransition as follows,

let cubeTranstion:CubeTransition = CubeTransition()

next, perform cube transition between your views as follows,

cubeTranstion.translateView(faceView!,                                // currently visible view
                            toView: subMenu!,                         // hidden view that you want to display from this transition
                            direction: direction,                     // any available CubeTransitionDirection
                            duration: 0.5)                            // animation duration 
                            { (displayView) in
                                // animation completion callback 
                            }

Finally, use the Completion block if you would like to perform any additional actions,

Here you go you are all setup for performing cool Cube Transition in you app 👍

Author

Sasi Moorthy, 📧 [email protected]. Looking out for freelance work, if interested feel free to contact me.

Contributing

I ❤️ pull requests. If you'd like to see new features, fix bugs, or lodge issues then please do so via Github.

License

STCubeTransition is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].