Latest 0.1.0
Homepage https://github.com/shamshiranees/SRFacebookAnimation
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

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

[email protected]

Credits

BRAIN VOONG

License

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

Latest podspec

{
    "name": "SRFacebookAnimation",
    "version": "0.1.0",
    "summary": "Facebook live streaming emoji animation which can be fully customised",
    "description": "TODO: Facebook live streaming emoji animation which can be fully customised.nBasic Usagen```swiftnSRFacebookAnimation.startPoint(CGPoint(x: 0, y: 300))//this is optional default location is (x: 0, y: 200)nn//Pass the Image.n//This method should be called for animating.nSRFacebookAnimation.animate(image:#imageLiteral(resourceName: "6"))n```nMore Featuresn```swiftnn// Amplitude of the path. Default value is 50nSRFacebookAnimation.animationAmplitude(5)nn// Bouncing needed more than the amplitude , Default value is 5.nSRFacebookAnimation.amplitudeBounce(5)nn// duration of the animationnSRFacebookAnimation.animationDuration(5)nn//Direction of the animation.Default value is leftToRight.n//rightToLeft or leftToRight.nSRFacebookAnimation.animationDirection(.rightToLeft)nn//Uptrust true means first it will animate to +ve direction.Default value is true.nSRFacebookAnimation.isUptrust(false)nn//Can change the demention of imageview.Default value is 20.nSRFacebookAnimation.imageDimention(30)//30 means you will get an imageView of demention 30x30nnn```",
    "homepage": "https://github.com/shamshiranees/SRFacebookAnimation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shamshiranees/SRFacebookAnimation.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SRFacebookAnimation/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This