Facebook live streaming emoji animation which can be fully customised
Switch branches/tags
Nothing to show
Clone or download
Latest commit f64bea4 Jan 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Screenshot Change Jan 9, 2018
SRFacebookAnimation Merge remote-tracking branch 'origin/master' Jan 9, 2018
.gitignore Initial commit Jan 9, 2018
.travis.yml Initial commit Jan 9, 2018
LICENSE Initial commit Jan 9, 2018
README.md Added summary in podspec Jan 10, 2018
SRFacebookAnimation.podspec change Jan 10, 2018
_Pods.xcodeproj Initial commit Jan 9, 2018

README.md

SRFacebookAnimation

CI Status Version License Platform

ScreenShot

ScreenShot

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 3.0+
Xcode 8.0+

Installation

SRFacebookAnimation is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SRFacebookAnimation'

or add SAFacebookAnimation.swift file into your project directory.

Usage

import SRFacebookAnimation

Basic Usage

SRFacebookAnimation.startPoint(CGPoint(x: 0, y: 300))//this is optional default location is (x: 0, y: 200)

//Pass the Image.
//This method should be called for animating.
SRFacebookAnimation.animate(image:#imageLiteral(resourceName: "6"))

More Features

// Amplitude of the path. Default value is 50
SRFacebookAnimation.animationAmplitude(5)

// Bouncing needed more than the amplitude , Default value is 5.
SRFacebookAnimation.amplitudeBounce(5)

// duration of the animation
SRFacebookAnimation.animationDuration(5)

//Direction of the animation.Default value is leftToRight.
//rightToLeft or leftToRight.
SRFacebookAnimation.animationDirection(.rightToLeft)

//Uptrust true means first it will animate to +ve direction.Default value is true.
SRFacebookAnimation.isUptrust(false)

//Can change the demention of imageview.Default value is 20.
SRFacebookAnimation.imageDimention(30)//30 means you will get an imageView of demention 30x30

Author

shamshir.anees@gmail.com

Credits

BRAIN VOONG

License

SRFacebookAnimation is available under the MIT license. See the LICENSE file for more info.