首頁 > web前端 > html教學 > 瞬间崩塌为小方块动画效果演示:StarWars Animation_html/css_WEB-ITnose

瞬间崩塌为小方块动画效果演示:StarWars Animation_html/css_WEB-ITnose

WBOY
發布: 2016-06-24 11:34:50
原創
1351 人瀏覽過

Yalantis 出品的瞬间崩塌为小方块动画效果演示。

Check this project on dribbble.

Also, read how it was done in our blog

Requirements

  • iOS 8.0+
  • Xcode 7
  • Swift 2

Installing with CocoaPods

use_frameworks!pod 'StarWars', '~> 1.0'
登入後複製

Usage

At first, import StarWars:

import StarWars
登入後複製

Then just implement class of UIViewControllerTransitioningDelegate that will return our animation form method animationControllerForDismissedController and assign it to transitioningDelegate of viewController that you want to dismiss.

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {    let destination = segue.destinationViewController    destination.transitioningDelegate = self}func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {    return StarWarsGLAnimator()}
登入後複製

项目主页:http://www.open-open.com/lib/view/home/1445608581867

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板