All Projects â†’ JustinFincher â†’ Jzglitchlabel

JustinFincher / Jzglitchlabel

Licence: mit
🔪 After effects glitch style UIView

JZGlitchLabel

JZGlitchLabel.jpg

[![CI Status](http://img.shields.io/travis/Fincher Justin/JZGlitchLabel.svg?style=flat)](https://travis-ci.org/Fincher Justin/JZGlitchLabel) Version License Platform

#Introduction JZGlitchLabel is a .... UIView with Glitch effect you can see in after effect project. DemoGif:
JZGlitchLabel.gif

Usage

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

Installation

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.

Author

Fincher Justin, [email protected]

License

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