All Projects → CoderXYF → XYFSnowAnimation

CoderXYF / XYFSnowAnimation

Licence: MIT license
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分类,直接使用,很简单

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to XYFSnowAnimation

ecosystem-ci
Automate issue discovery for your projects against Lightning nightly and releases.
Stars: ✭ 41 (+173.33%)
Mutual labels:  lightweight
navis
Python 3 library for analysis of neuroanatomical data
Stars: ✭ 68 (+353.33%)
Mutual labels:  transform
i18n-core
i18n-core is a no-fuzz Node.js implementation of i18n.
Stars: ✭ 14 (-6.67%)
Mutual labels:  lightweight
xdecor
A decoration mod for Minetest meant to be light, simple and well-featured
Stars: ✭ 25 (+66.67%)
Mutual labels:  lightweight
lexer
Hackable Lexer with UTF-8 support
Stars: ✭ 19 (+26.67%)
Mutual labels:  lightweight
canorus
Canorus is a free cross-platform music score editor
Stars: ✭ 25 (+66.67%)
Mutual labels:  lightweight
craftcms
Craft CMS Docker Image
Stars: ✭ 73 (+386.67%)
Mutual labels:  lightweight
d2launcher
Diablo II • Median XL • Mod Launcher for Linux
Stars: ✭ 20 (+33.33%)
Mutual labels:  lightweight
cli
a lightweight and simple cli package
Stars: ✭ 12 (-20%)
Mutual labels:  lightweight
brute-md5
Advanced, Light Weight & Extremely Fast MD5 Cracker/Decoder/Decryptor written in Python 3
Stars: ✭ 16 (+6.67%)
Mutual labels:  lightweight
babel-plugin-transform-for-of-as-array
Transform all for-of loops into the equivalent array for loop
Stars: ✭ 14 (-6.67%)
Mutual labels:  transform
copy-translator
简单、轻量、好用的划词翻译软件
Stars: ✭ 979 (+6426.67%)
Mutual labels:  lightweight
vim-config
My .vimrc config
Stars: ✭ 20 (+33.33%)
Mutual labels:  lightweight
leeks.js
Simple ANSI styling for your terminal
Stars: ✭ 12 (-20%)
Mutual labels:  lightweight
tb-grid
tb-grid is a super simple and lightweight 12 column responsive grid system utilizing css grid.
Stars: ✭ 19 (+26.67%)
Mutual labels:  lightweight
lwlog
A lightweight header only logging library for C
Stars: ✭ 46 (+206.67%)
Mutual labels:  lightweight
hat-view
Allow to put "hat" on TextView. Inspired by Telegram appbar title with Santa Claus hat 🎅🏻
Stars: ✭ 51 (+240%)
Mutual labels:  lightweight
plexydesk
Lightweight Desktop Manager for Gnu/Linux and FreeBSD - Ideal for Low resource computers
Stars: ✭ 33 (+120%)
Mutual labels:  lightweight
go-baseapp
A lightweight starting point for Go web servers
Stars: ✭ 61 (+306.67%)
Mutual labels:  lightweight
dft
Discrete Fourier transform
Stars: ✭ 25 (+66.67%)
Mutual labels:  transform

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.

Usage

Add snow(Falling flower) animation

// Snow
[NSTimer timerWithSnowAnimationInView:self.view backgroundImage:[UIImage imageNamed:@"snow_bg"] snowImage:[UIImage imageNamed:@"snow"] BGMFilePath:[[NSBundle mainBundle] pathForResource:@"snow_bgm" ofType:@"mp3"]]
// Falling flower:
[NSTimer timerWithSnowAnimationInView:self.view backgroundImage:[UIImage imageNamed:@"flower_bg"] snowImage:[UIImage imageNamed:@"flower"] BGMFilePath:[[NSBundle mainBundle] pathForResource:@"flower_bgm" ofType:@"mp3"]];

remove snow(Falling flower) animation

[NSTimer removeSnowAnimation];

Installation

CocoaPods

  1. Add pod 'XYFSnowAnimation' to your Podfile.
  2. Run pod install or pod update.
  3. Import <NSTimer+XYFSnowAnimation.h>.

Manually

  1. Download XYFSnowAnimation and find XYFSnowAnimationDemo/XYFSnowAnimation finder.
  2. Add the source files to your Xcode project.
  3. Import NSTimer+XYFSnowAnimation.h.

Requirements

This library requires iOS 8.0+.

License

XYFSnowAnimation is provided under the MIT license. See LICENSE file for details.



中文介绍

iOS 3D三维飘落下雪落花动画,轻量级CALayer图层动画,核心动画,3D形变,性能安全,定时器NSTimer分类,直接使用,很简单 。

使用

添加下雪(落花)动画

// 下雪
[NSTimer timerWithSnowAnimationInView:self.view backgroundImage:[UIImage imageNamed:@"snow_bg"] snowImage:[UIImage imageNamed:@"snow"] BGMFilePath:[[NSBundle mainBundle] pathForResource:@"snow_bgm" ofType:@"mp3"]]
// 落花:
[NSTimer timerWithSnowAnimationInView:self.view backgroundImage:[UIImage imageNamed:@"flower_bg"] snowImage:[UIImage imageNamed:@"flower"] BGMFilePath:[[NSBundle mainBundle] pathForResource:@"flower_bgm" ofType:@"mp3"]];

移除下雪(落花)动画

[NSTimer removeSnowAnimation];

安装

CocoaPods

  1. 在 Podfile 中添加 pod 'XYFSnowAnimation'
  2. 执行 pod installpod update
  3. 导入 <NSTimer+XYFSnowAnimation.h>。

手动安装

  1. 下载 XYFSnowAnimation 并找到 XYFSnowAnimationDemo/XYFSnowAnimation 文件夹。
  2. 将 XYFSnowAnimation 文件夹内的源文件添加(拖放)到你的工程。
  3. 导入 NSTimer+XYFSnowAnimation.h

系统要求

该工具最低支持 iOS 8.0

许可证

XYFSnowAnimation 使用 MIT 许可证,详情见 LICENSE 文件。

Preview(预览效果动态图):

img  img
Tip(提示):It may need to load for a while to show dynamic effect.可能需要加载一会才能看到动态效果。

Contact me (联系我)

QQ:2016003298
微信(WeChat):yz33915958

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].