Home > Web Front-end > HTML Tutorial > 瞬间崩塌为小方块动画效果演示:StarWars Animation_html/css_WEB-ITnose

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

WBOY
Release: 2016-06-24 11:34:50
Original
1355 people have browsed it

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'
Copy after login

Usage

At first, import StarWars:

import StarWars
Copy after login

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()}
Copy after login

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template