[![CI Status](http://img.shields.io/travis/Fincher Justin/JZGlitchLabel.svg?style=flat)](https://travis-ci.org/Fincher Justin/JZGlitchLabel)
#Introduction
JZGlitchLabel is a .... UIView with Glitch effect you can see in after effect project.
DemoGif:
To run the example project, clone the repo, and run pod install
from the Example directory first.
GLabel = [[JZGlitchLabel alloc] initWithFrame:CGRectMake(0, 20, self.view.frame.size.width,300)];
GLabel.Label.text = @"T";
GLabel.Label.font = [UIFont systemFontOfSize:150.0f weight:40];
GLabel.MinFontSize = 60;
GLabel.MaxFontSize = 160;
GLabel.MinFontWeight = 20;
GLabel.MaxFontWeight = 40;
[self.view addSubview:GLabel];
//Use this to make a glitch animation
[GLabel performGlitchTransformTo:@"You want"]
WithSteps:30
WithInterval:0.08
WithFontSize:130
WithFontWeight:50
WithGlitchParameter:20];
MinFontSize: MinFontSize when in Glitch
MaxFontSize: MaxFontSize when in Glitch
MinFontWeight: MinFontWeight when in Glitch
MaxFontWeight: MaxFontWeight when in Glitch
WithGlitchParameter: CGfloat, detemine the Glitch effect (bigger the cooler)
If there is chinese words (unicode 0x4E00 - 0x9FFF) , glitch will be chinese. else will be english (a-z,0-9).
JZGlitchLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JZGlitchLabel"
Or just grab JZGlitchLabel.h and .m from github.
Fincher Justin, zhtsu47@me.com
JZGlitchLabel is available under the MIT license. See the LICENSE file for more info.