Facebook live streaming emoji animation which can be fully customised
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
SRFacebookAnimation
.gitignore
.travis.yml
LICENSE
README.md
SRFacebookAnimation.podspec
_Pods.xcodeproj

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.